diff --git a/chart/templates/ingress.yaml b/chart/templates/ingress.yaml index 6649206..ee47f8b 100644 --- a/chart/templates/ingress.yaml +++ b/chart/templates/ingress.yaml @@ -11,7 +11,7 @@ metadata: labels: {{- include "longhorn.labels" . | nindent 4 }} app: longhorn-ingress annotations: - {{- if .Values.ingress.tls }} + {{- if .Values.ingress.secureBackends }} ingress.kubernetes.io/secure-backends: "true" {{- end }} {{- range $key, $value := .Values.ingress.annotations }} diff --git a/chart/values.yaml b/chart/values.yaml index 55a4cb8..8a10409 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -194,9 +194,11 @@ ingress: host: sslip.io ## Set this to true in order to enable TLS on the ingress record - ## A side effect of this will be that the backend service will be connected at port 443 tls: false + ## Enable this in order to enable that the backend service will be connected at port 443 + secureBackends: false + ## If TLS is set to true, you must declare what secret will store the key/certificate for TLS tlsSecret: longhorn.local-tls