From b7c8f55cc2855b0e0ee850dd2b5d323c8b94e0a4 Mon Sep 17 00:00:00 2001 From: Moses Anzagi Date: Thu, 5 Dec 2024 16:33:08 +0300 Subject: [PATCH] add tls config on ingress resource --- nginx-serve/helm/templates/ingress.yaml | 6 ++++++ nginx-serve/helm/values.yaml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/nginx-serve/helm/templates/ingress.yaml b/nginx-serve/helm/templates/ingress.yaml index eb55551f..75d4537f 100644 --- a/nginx-serve/helm/templates/ingress.yaml +++ b/nginx-serve/helm/templates/ingress.yaml @@ -19,3 +19,9 @@ spec: name: {{ template "ifrcgo-web-app.fullname" . }}-svc port: number: 80 + {{- if .Values.ingress.tls }} + tls: + - hosts: + - {{ .Values.ingress.host | quote }} + secretName: {{ .Values.ingress.tls.secretName }} + {{- end }} \ No newline at end of file diff --git a/nginx-serve/helm/values.yaml b/nginx-serve/helm/values.yaml index 300da1dc..771e79dc 100644 --- a/nginx-serve/helm/values.yaml +++ b/nginx-serve/helm/values.yaml @@ -15,6 +15,8 @@ resources: ingress: host: + tls: + secretName: env: APP_TITLE: "Alert hub"