Enable HTTPRoute configuration for Ceph Dashboard and S3 Object Storage

This commit is contained in:
Marco van Zijl 2025-11-08 20:56:01 +01:00
parent 6094ec5247
commit 8abbfd7029

View File

@ -12,8 +12,19 @@ rook-ceph-cluster:
enabled: true enabled: true
ingress: ingress:
dashboard: {}
route:
dashboard: dashboard:
enabled: false # We'll use Gateway API instead enabled: true
host:
name: ceph.noxxos.nl
path: "/"
pathType: PathPrefix
parentRefs:
- name: traefik-gateway
namespace: traefik
sectionName: websecure
cephClusterSpec: cephClusterSpec:
crashCollector: crashCollector:
@ -33,6 +44,7 @@ rook-ceph-cluster:
dashboard: dashboard:
enabled: true enabled: true
ssl: false ssl: false
port: 7000
resources: resources:
mgr: mgr:
@ -182,66 +194,13 @@ rook-ceph-cluster:
enabled: true enabled: true
reclaimPolicy: Delete reclaimPolicy: Delete
volumeBindingMode: "Immediate" volumeBindingMode: "Immediate"
ingress: route:
enabled: false # We'll use Gateway API instead enabled: true
host:
# Gateway API HTTPRoutes for Ceph Dashboard and S3 name: s3.noxxos.nl
extraObjects: path: "/"
# ReferenceGrant for Gateway to access rook-ceph namespace pathType: PathPrefix
- apiVersion: gateway.networking.k8s.io/v1beta1
kind: ReferenceGrant
metadata:
name: traefik-gateway-access
namespace: rook-ceph
spec:
from:
- group: gateway.networking.k8s.io
kind: HTTPRoute
namespace: rook-ceph
to:
- group: ""
kind: Service
# Ceph Dashboard HTTPRoute
- apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: ceph-dashboard
namespace: rook-ceph
spec:
parentRefs: parentRefs:
- name: traefik-gateway - name: traefik-gateway
namespace: traefik namespace: traefik
sectionName: websecure sectionName: websecure
hostnames:
- "ceph.noxxos.nl"
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: rook-ceph-mgr-dashboard
port: 7000
# S3 Object Storage HTTPRoute
- apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: ceph-s3
namespace: rook-ceph
spec:
parentRefs:
- name: traefik-gateway
namespace: traefik
sectionName: websecure
hostnames:
- "s3.noxxos.nl"
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: rook-ceph-rgw-ceph-objectstore
port: 80