REFACTOR(storage): integrate ingress in values

- longhorn: move ingress to helm-values, nodes to manifests
- velero: move ingress to velero-ui inline values
This commit is contained in:
2026-01-06 01:56:50 +09:00
parent f2812a7528
commit 6a13a52924
9 changed files with 27 additions and 52 deletions

View File

@@ -84,7 +84,14 @@ csi:
# Ingress for Longhorn UI
ingress:
enabled: false # We'll create a separate Ingress resource
enabled: true
ingressClassName: traefik
host: longhorn0213.kro.kr
tls: true
tlsSecret: longhorn-tls
path: /
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
# Service configuration
service:

View File

@@ -1,24 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: longhorn-ingress
namespace: longhorn
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
ingressClassName: traefik
tls:
- hosts:
- longhorn0213.kro.kr
secretName: longhorn-tls
rules:
- host: longhorn0213.kro.kr
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: longhorn-frontend
port:
number: 80

View File

@@ -2,4 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: longhorn
resources:
- ingress.yaml
- manifests/mayne-vcn.yaml
- manifests/mayne-worker-1.yaml
- manifests/mayne-worker-2.yaml

View File

@@ -101,6 +101,22 @@ spec:
serviceAccount:
create: true
name: velero-ui
ingress:
enabled: true
className: traefik
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
traefik.ingress.kubernetes.io/router.middlewares: authelia-authelia-auth@kubernetescrd
hosts:
- host: velero0213.kro.kr
paths:
- path: /
pathType: Prefix
tls:
- secretName: velero-ui-tls
hosts:
- velero0213.kro.kr
destination:
server: https://kubernetes.default.svc
namespace: velero

View File

@@ -1,25 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: velero-ui-ingress
namespace: velero
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
traefik.ingress.kubernetes.io/router.middlewares: authelia-authelia-auth@kubernetescrd
spec:
ingressClassName: traefik
tls:
- hosts:
- velero0213.kro.kr
secretName: velero-ui-tls
rules:
- host: velero0213.kro.kr
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: velero-ui
port:
number: 3000

View File

@@ -2,4 +2,3 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- vault/velero-secrets.yaml
- ingress.yaml