ceph: expose dashboard

This commit is contained in:
Finn 2025-03-21 00:28:39 -07:00
parent 6c1a4ea726
commit 8b52908215
7 changed files with 63 additions and 1 deletions

View file

@ -0,0 +1,29 @@
# ceph-dashboard.home.finn.io
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: ceph-dashboard.home.finn.io
spec:
entryPoints:
- websecure
routes:
- match: Host(`ceph-dashboard.k8s.home.finn.io`) && PathPrefix(`/`)
kind: Rule
services:
- name: ceph-dashboard-home-finn-io
kind: Service
port: 80
middlewares:
- name: kube-system-traefik-forward-auth@kubernetescrd
---
apiVersion: v1
kind: Service
metadata:
name: ceph-dashboard-home-finn-io
spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
type: ExternalName
externalName: 10.5.1.219

View file

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: http-ingress
resources:
- namespace.yaml
- external-services.yaml

View file

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: http-ingress

View file

@ -1,4 +1,4 @@
apiVersion: traefik.containo.us/v1alpha1
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: traefik-dashboard

View file

@ -33,6 +33,7 @@ spec:
providers:
kubernetesCRD:
allowCrossNamespace: true
allowExternalNameServices: true
logs:
access:
enabled: true

View file

@ -0,0 +1,20 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ceph-dashboard.k8s.home.finn.io
labels:
name: ceph-dashboard.k8s.home.finn.io
annotations:
cert-manager.io/cluster-issuer: letsencrypt
spec:
rules:
- host: ceph-dashboard.k8s.home.finn.io
http:
paths:
- pathType: Prefix
path: /
backend:
service:
name: rook-ceph-mgr-dashboard
port:
number: 7000

View file

@ -3,5 +3,7 @@ kind: Kustomization
namespace: rook-ceph
resources:
- buckets.yaml
- dashboard.yaml
- filesystems.yaml
- s3-pool.yaml
- servicemonitor.yaml