diff --git a/chart/examples/microk8s-hosted.yaml b/chart/examples/microk8s-hosted.yaml index bc4ceb2307..dfd84e7fb8 100644 --- a/chart/examples/microk8s-hosted.yaml +++ b/chart/examples/microk8s-hosted.yaml @@ -37,6 +37,10 @@ ingress: scheme: "https" tls: true + # Optional for Certificate from other authority already added to microk8s as secret + # Secret must be added like, assumed command is executed in the path of my-key.key and my-cert.crt + # microk8s kubectl create secret tls onb-tls --namespace default --key=my-key.key --cert=my-cert.crt -o yaml + # secretName: my-secret ingress_class: "public" diff --git a/chart/templates/ingress.yaml b/chart/templates/ingress.yaml index 6ff01dab83..1b0c4d5389 100644 --- a/chart/templates/ingress.yaml +++ b/chart/templates/ingress.yaml @@ -26,7 +26,7 @@ spec: tls: - hosts: - {{ .Values.ingress.host }} - secretName: cert-main + secretName: {{ .Values.ingress.secretName | default "cert-main" }} {{- end }} rules: