File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
charts/docker-mailserver/templates Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,17 @@ metadata:
2626spec :
2727 # # If a load balancer is being used, ensure that the newer type of LB that passes along IP information is used
2828 # # rather than the legacy one.
29+ {{- if or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer") }}
2930 {{- if .Values.service.externalTrafficPolicy }}
3031 externalTrafficPolicy : {{ .Values.service.externalTrafficPolicy }}
3132 {{- end }}
33+ {{- if and (not .Values.service.externalTrafficPolicy) (eq .Values.service.type "LoadBalancer") }}
34+ externalTrafficPolicy : Local
35+ {{- end }}
36+ {{- if and (not .Values.service.externalTrafficPolicy) (eq .Values.service.type "NodePort") }}
37+ externalTrafficPolicy : Cluster
38+ {{- end }}
39+ {{- end }}
3240 selector :
3341 app.kubernetes.io/name : {{ template "dockermailserver.fullname" . }}
3442 release : " {{ .Release.Name }}"
You can’t perform that action at this time.
0 commit comments