mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/nginx-ingress] Allow to configure source IP preservation on Kubernetes 1.7 (#1570)
* Set externalTrafficPolicy and healthCheckNodePort * Rebase & address PR review * Remove duplicate fields * Final cleanup
This commit is contained in:
committed by
Michael Goodness
parent
918025ce64
commit
54f070577b
@@ -1,5 +1,5 @@
|
||||
name: nginx-ingress
|
||||
version: 0.8.2
|
||||
version: 0.8.3
|
||||
appVersion: 0.9.0-beta.12
|
||||
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
|
||||
|
||||
@@ -25,8 +25,11 @@ spec:
|
||||
loadBalancerSourceRanges:
|
||||
{{ toYaml .Values.controller.service.loadBalancerSourceRanges | indent 4 }}
|
||||
{{- end }}
|
||||
{{- if .Values.controller.service.externalTrafficPolicy }}
|
||||
{{- if and (ge .Capabilities.KubeVersion.Minor "7") (.Values.controller.service.externalTrafficPolicy) }}
|
||||
externalTrafficPolicy: "{{ .Values.controller.service.externalTrafficPolicy }}"
|
||||
{{- end }}
|
||||
{{- if and (ge .Capabilities.KubeVersion.Minor "7") (.Values.controller.service.healthCheckNodePort) }}
|
||||
healthCheckNodePort: {{ .Values.controller.service.healthCheckNodePort }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: http
|
||||
|
||||
@@ -90,6 +90,8 @@ controller:
|
||||
## Ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typeloadbalancer
|
||||
externalTrafficPolicy: ""
|
||||
|
||||
healthCheckNodePort: 0
|
||||
|
||||
targetPorts:
|
||||
http: 80
|
||||
https: 443
|
||||
|
||||
Reference in New Issue
Block a user