From 32f637574792c46b963b64bd1d3ab2cfc8765844 Mon Sep 17 00:00:00 2001 From: Jake Conkerton-Darby Date: Thu, 12 Sep 2024 11:35:49 +0100 Subject: [PATCH] CH-145 Add spec.ingressClassName to ingress template --- deployment-configuration/helm/templates/ingress.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment-configuration/helm/templates/ingress.yaml b/deployment-configuration/helm/templates/ingress.yaml index 276d999c8..6e08b7565 100644 --- a/deployment-configuration/helm/templates/ingress.yaml +++ b/deployment-configuration/helm/templates/ingress.yaml @@ -32,7 +32,7 @@ kind: Ingress metadata: name: {{ .Values.ingress.name | quote }} annotations: - kubernetes.io/ingress.class: nginx + kubernetes.io/ingress.class: nginx # Deprecated by Kubernetes, however still required for GKE {{- if and (not .Values.local) $tls }} kubernetes.io/tls-acme: 'true' cert-manager.io/issuer: {{ printf "%s-%s" "letsencrypt" .Values.namespace }} @@ -47,6 +47,7 @@ metadata: nginx.ingress.kubernetes.io/proxy-send-timeout: {{ .Values.proxy.timeout.send | quote }} nginx.ingress.kubernetes.io/use-forwarded-headers: {{ .Values.proxy.forwardedHeaders | quote }} spec: + ingressClassName: nginx rules: {{- range $app := .Values.apps }} {{- if (and $mainapp (and $app.harness.name (eq $app.harness.name $mainapp))) }}