From ee3e195eb71975bc2b6e8ec6858baea3d841c734 Mon Sep 17 00:00:00 2001 From: Nils Vogels Date: Fri, 18 Oct 2024 09:20:55 +0200 Subject: [PATCH] Only set the externTrafficPolicy when spec.type is not ClusterIP --- mailu/templates/front/service-external.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mailu/templates/front/service-external.yaml b/mailu/templates/front/service-external.yaml index d868b73e..d5759237 100644 --- a/mailu/templates/front/service-external.yaml +++ b/mailu/templates/front/service-external.yaml @@ -18,7 +18,9 @@ spec: app.kubernetes.io/component: front {{- with .Values.front.externalService }} type: {{ .type | default "ClusterIP" }} + {{- if ne $.Values.front.externalService.type "ClusterIP" -}} externalTrafficPolicy: {{ .externalTrafficPolicy | default "Local" }} + {{- end }} {{- if .loadBalancerIP }} loadBalancerIP: {{ .loadBalancerIP }} {{- end }}