File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,11 +26,7 @@ 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 eq .Values.service.type "LoadBalancer" }}
30- externalTrafficPolicy : Local
31- {{- else if eq .Values.service.type "NodePort" }}
32- externalTrafficPolicy : Cluster
33- {{ end }}
29+ externalTrafficPolicy : {{ default "Local" .Values.service.externalTrafficPolicy }}
3430 selector :
3531 app.kubernetes.io/name : {{ template "dockermailserver.fullname" . }}
3632 release : " {{ .Release.Name }}"
Original file line number Diff line number Diff line change @@ -298,6 +298,11 @@ service:
298298 # # - LoadBalancer (to the world)
299299 # # - ClusterIP (to the cluster)
300300 type : " LoadBalancer"
301+ # # Manually overwrite the externalTrafficPolicy. One of:
302+ # # - Local
303+ # # - Cluster
304+ # # Set it to "Local" when used with type "LoadBalancer", unless you have a good reason not to.
305+ # externalTrafficPolicy: Local
301306 # # If there is a port associated with a given service, expose it here.
302307 # port:
303308 # # If there is a particular IP that should be used for the service, specify it here.
You can’t perform that action at this time.
0 commit comments