Skip to content

Commit

Permalink
Only set the externTrafficPolicy when spec.type is not ClusterIP
Browse files Browse the repository at this point in the history
  • Loading branch information
WebSpider committed Oct 18, 2024
1 parent 5d43510 commit ee3e195
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mailu/templates/front/service-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit ee3e195

Please sign in to comment.