diff --git a/charts/docker-mailserver/templates/service.yaml b/charts/docker-mailserver/templates/service.yaml index b374bbe..ef23fe1 100644 --- a/charts/docker-mailserver/templates/service.yaml +++ b/charts/docker-mailserver/templates/service.yaml @@ -145,3 +145,6 @@ spec: {{- if .Values.service.clusterIp }} clusterIP: {{ .Values.service.clusterIp }} {{- end }} + {{- if .Values.service.trafficDistribution }} + trafficDistribution: {{ .Values.service.trafficDistribution }} + {{- end }} diff --git a/charts/docker-mailserver/values.yaml b/charts/docker-mailserver/values.yaml index a114d89..e975eaf 100644 --- a/charts/docker-mailserver/values.yaml +++ b/charts/docker-mailserver/values.yaml @@ -300,6 +300,12 @@ service: ## Set it to "Local" when used with type "LoadBalancer" and set it to "Cluster" when used with "NodePort", ## unless you have a good reason not to. # externalTrafficPolicy: "Cluster" + ## Traffic distribution preference for Services. One of: + ## - PreferClose + ## - PreferSameZone (started from 1.34) + ## - PreferSameNode (started from 1.34) + ## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution + trafficDistribution: "" ## If there is a port associated with a given service, expose it here. # port: ## If there is a particular IP that should be used for the service, specify it here.