Skip to content

Commit

Permalink
Add longhorn dashboard ingress route
Browse files Browse the repository at this point in the history
  • Loading branch information
svwolter committed Feb 3, 2025
1 parent 4c5a576 commit b6d7848
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 deletions.
17 changes: 17 additions & 0 deletions helm/testcenter-helm-chart/templates/longhorn/ingress-route.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: longhorn-ingress
namespace: longhorn-system
spec:
entryPoints:
- web
- websecure
routes:
- match: Host(`{{ .Values.persistence.longhorn.uiSubdomain }}.{{ .Values.ingress.baseDomain }}`)
kind: Rule
middlewares:
- name: svc-longhorn-headers
services:
- name: longhorn-frontend
port: 80
10 changes: 10 additions & 0 deletions helm/testcenter-helm-chart/templates/longhorn/middleware.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Longhorn UI
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: svc-longhorn-headers
namespace: longhorn-system
spec:
headers:
customRequestHeaders:
X-Forwarded-Proto: "https"
12 changes: 8 additions & 4 deletions helm/testcenter-helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,21 @@ deployment:
maxUnavailable: 0

persistence:
longhorn:
enable: true
uiSubdomain: longhorn

cacheServer:
storageClassName: standard
storageClassName: longhorn-single
accessMode: ReadWriteOnce
size: 5Gi

backend:
storageClassName: standard
accessMode: ReadWriteOnce
storageClassName: longhorn
accessMode: ReadWriteMany
size: 2Gi

db:
storageClassName: standard
storageClassName: longhorn-single
accessMode: ReadWriteOnce
size: 2Gi

0 comments on commit b6d7848

Please sign in to comment.