ceph: expose dashboard
This commit is contained in:
parent
6c1a4ea726
commit
8b52908215
7 changed files with 63 additions and 1 deletions
k8s
http-ingress
system
talos/k8s/rook
29
k8s/http-ingress/external-services.yaml
Normal file
29
k8s/http-ingress/external-services.yaml
Normal 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
|
6
k8s/http-ingress/kustomization.yaml
Normal file
6
k8s/http-ingress/kustomization.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: http-ingress
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- external-services.yaml
|
4
k8s/http-ingress/namespace.yaml
Normal file
4
k8s/http-ingress/namespace.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: http-ingress
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: traefik.containo.us/v1alpha1
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: traefik-dashboard
|
||||
|
|
|
@ -33,6 +33,7 @@ spec:
|
|||
providers:
|
||||
kubernetesCRD:
|
||||
allowCrossNamespace: true
|
||||
allowExternalNameServices: true
|
||||
logs:
|
||||
access:
|
||||
enabled: true
|
||||
|
|
20
talos/k8s/rook/dashboard.yaml
Normal file
20
talos/k8s/rook/dashboard.yaml
Normal 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
|
|
@ -3,5 +3,7 @@ kind: Kustomization
|
|||
namespace: rook-ceph
|
||||
resources:
|
||||
- buckets.yaml
|
||||
- dashboard.yaml
|
||||
- filesystems.yaml
|
||||
- s3-pool.yaml
|
||||
- servicemonitor.yaml
|
||||
|
|
Loading…
Add table
Reference in a new issue