Skip to content

Commit 000ed76

Browse files
committed
fix externalTrafficPolicy
1 parent f43f746 commit 000ed76

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
service:
2-
type: ClusterIP
2+
type: ClusterIP

charts/docker-mailserver/ci/ci-values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
service:
22
type: ClusterIP
3-
externalTrafficPolicy: Local
43

54
configMaps:
65
postfix-accounts.cf:

charts/docker-mailserver/templates/service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ metadata:
2626
spec:
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 .Values.service.externalTrafficPolicy }}
2930
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
31+
{{- end }}
3032
selector:
3133
app.kubernetes.io/name: {{ template "dockermailserver.fullname" . }}
3234
release: "{{ .Release.Name }}"

charts/docker-mailserver/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,9 @@ service:
304304
## Manually overwrite the externalTrafficPolicy. One of:
305305
## - Local
306306
## - Cluster
307-
## Set it to "Local" when used with type "LoadBalancer" or "ClusterIP" and set it to "Cluster" when used with "NodePort",
307+
## Set it to "Local" when used with type "LoadBalancer" and set it to "Cluster" when used with "NodePort",
308308
## unless you have a good reason not to.
309-
externalTrafficPolicy: "Local"
309+
# externalTrafficPolicy: "Cluster"
310310
## If there is a port associated with a given service, expose it here.
311311
# port:
312312
## If there is a particular IP that should be used for the service, specify it here.

0 commit comments

Comments
 (0)