diff --git a/apps/templates/longhorn.yaml b/apps/templates/longhorn.yaml index c70da50..fa71e5e 100644 --- a/apps/templates/longhorn.yaml +++ b/apps/templates/longhorn.yaml @@ -14,6 +14,7 @@ spec: chart: longhorn helm: values: | + persistence: defaultClassReplicaCount: 2 @@ -30,6 +31,17 @@ spec: operator: "Exists" - key: "node-role.kubernetes.io/master" operator: "Exists" + + ingress: + enabled: true + ingressClassName: traefik + annotations: + cert-manager.io/acme-challenge-type: dns01 + cert-manager.io/cluster-issuer: roxedus.com-cloudflare + host: longhorn.roxedus.com + tls: true + tlsSecret: longhorn-roxedus-com-cert + repoURL: https://charts.longhorn.io targetRevision: 1.3.2 @@ -38,23 +50,4 @@ spec: prune: true selfHeal: true syncOptions: - - CreateNamespace=true - ---- -apiVersion: traefik.containo.us/v1alpha1 -kind: IngressRoute -metadata: - name: longhorn-traefik - namespace: longhorn-system -spec: - entryPoints: - - websecure - routes: - - kind: Rule - match: Host("longhorn.roxedus.com") - priority: 10 - services: - - name: longhorn-frontend - port: 80 - tls: - certResolver: cloudflare + - CreateNamespace=true \ No newline at end of file