Merge pull request #6087 from stylianosrigas/add-externaltrafficpolicy-internal-parameter
Adding parameter for externalTrafficPolicy in internal controller service spec.
This commit is contained in:
commit
3e84eeaf0a
3 changed files with 9 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
apiVersion: v1
|
||||
name: ingress-nginx
|
||||
version: 2.14.0
|
||||
version: 2.15.0
|
||||
appVersion: 0.35.0
|
||||
home: https://github.com/kubernetes/ingress-nginx
|
||||
description: Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer
|
||||
|
|
|
@ -15,6 +15,9 @@ metadata:
|
|||
name: {{ include "ingress-nginx.controller.fullname" . }}-internal
|
||||
spec:
|
||||
type: "{{ .Values.controller.service.type }}"
|
||||
{{- if .Values.controller.service.internal.externalTrafficPolicy }}
|
||||
externalTrafficPolicy: {{ .Values.controller.service.internal.externalTrafficPolicy }}
|
||||
{{- end }}
|
||||
ports:
|
||||
{{- $setNodePorts := (or (eq .Values.controller.service.type "NodePort") (eq .Values.controller.service.type "LoadBalancer")) }}
|
||||
{{- if .Values.controller.service.enableHttp }}
|
||||
|
|
|
@ -349,6 +349,11 @@ controller:
|
|||
enabled: false
|
||||
annotations: {}
|
||||
|
||||
## 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: ""
|
||||
|
||||
extraContainers: []
|
||||
## Additional containers to be added to the controller pod.
|
||||
## See https://github.com/lemonldap-ng-controller/lemonldap-ng-controller as example.
|
||||
|
|
Loading…
Reference in a new issue