From f539d3164757b484c96efd439c2b5e2318e4e4c2 Mon Sep 17 00:00:00 2001 From: gitreich <127396642+gitreich@users.noreply.github.com> Date: Thu, 19 Sep 2024 10:37:33 +0200 Subject: [PATCH 1/2] Adding secretName to microk8s-hosted.yaml --- chart/examples/microk8s-hosted.yaml | 4 ++++ 1 file changed, 4 insertions(+) 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" From 8d305684fd5b83b27a8a6cb7627cb496fd5bdb25 Mon Sep 17 00:00:00 2001 From: gitreich <127396642+gitreich@users.noreply.github.com> Date: Thu, 19 Sep 2024 10:39:07 +0200 Subject: [PATCH 2/2] Added Values.ingress.secretName in ingress.yaml --- chart/templates/ingress.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: