Allow setting externalTrafficPolicy for nginx-ingress controller service (#1542)

* Allow setting externalTrafficPolicy for nginx-ingress controller service

* Update Chart.yaml
This commit is contained in:
Calin Don
2017-08-09 22:46:51 -07:00
committed by Vic Iglesias
parent 4af5810ff1
commit c9a74c86b2
3 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: nginx-ingress
version: 0.7.1
version: 0.7.2
appVersion: 0.9.0-beta.7
description: An nginx Ingress controller that uses ConfigMap to store the nginx configuration.
icon: https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Nginx_logo.svg/500px-Nginx_logo.svg.png
@@ -24,6 +24,9 @@ spec:
{{- if .Values.controller.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{ toYaml .Values.controller.service.loadBalancerSourceRanges | indent 4 }}
{{- end }}
{{- if .Values.controller.service.externalTrafficPolicy }}
externalTrafficPolicy: "{{ .Values.controller.service.externalTrafficPolicy }}"
{{- end }}
ports:
- name: http
+5
View File
@@ -77,6 +77,11 @@ controller:
loadBalancerIP: ""
loadBalancerSourceRanges: []
## Set external traffic policy to: "Local" to preserve source IP on
## providers supporting it
## Ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typeloadbalancer
externalTrafficPolicy: ""
targetPorts:
http: 80
https: 443