diff --git a/charts/kubernetes-dashboard/Chart.yaml b/charts/kubernetes-dashboard/Chart.yaml index 75e217b2f0bb..093d0b0943b9 100644 --- a/charts/kubernetes-dashboard/Chart.yaml +++ b/charts/kubernetes-dashboard/Chart.yaml @@ -14,7 +14,7 @@ apiVersion: v2 name: kubernetes-dashboard -version: 7.0.1 +version: 7.1.0 description: General-purpose web UI for Kubernetes clusters keywords: - kubernetes diff --git a/charts/kubernetes-dashboard/templates/networking/ingress.yaml b/charts/kubernetes-dashboard/templates/networking/ingress.yaml index ba4d5b312ee1..d86bf438f2b6 100644 --- a/charts/kubernetes-dashboard/templates/networking/ingress.yaml +++ b/charts/kubernetes-dashboard/templates/networking/ingress.yaml @@ -50,7 +50,11 @@ spec: tls: - hosts: {{- toYaml .Values.app.ingress.hosts | nindent 6 }} + {{- if .Values.app.ingress.tls.secretName }} + secretName: {{ .Values.app.ingress.tls.secretName }} + {{- else }} secretName: {{ template "kubernetes-dashboard.app.ingress.secret.name" . }} + {{- end }} {{- end }} rules: {{- if .Values.app.ingress.hosts }} diff --git a/charts/kubernetes-dashboard/values.yaml b/charts/kubernetes-dashboard/values.yaml index ee7afcb56436..335289da43c4 100644 --- a/charts/kubernetes-dashboard/values.yaml +++ b/charts/kubernetes-dashboard/values.yaml @@ -106,6 +106,9 @@ app: # - cluster - adds 'cert-manager.io/cluster-issuer' # - disabled - disables cert-manager annotations scope: default + tls: + # If provided it will override autogenerated secret name + secretName: "" labels: {} annotations: {} # Use the following toleration if Dashboard can be deployed on a tainted control-plane nodes