#6477 Allow specifying the loadBalancerIP for the internal load balancer

This is useful, so internal DNS tools can point against this fixed IP.
This commit is contained in:
Tamas Utasi 2020-11-27 11:16:38 +01:00
parent beb2eff087
commit 77bb13446e
No known key found for this signature in database
GPG key ID: 7B5EA2DDF3153D72
2 changed files with 5 additions and 0 deletions

View file

@ -15,6 +15,9 @@ metadata:
name: {{ include "ingress-nginx.controller.fullname" . }}-internal
spec:
type: "{{ .Values.controller.service.type }}"
{{- if .Values.controller.service.internal.loadBalancerIP }}
loadBalancerIP: {{ .Values.controller.service.internal.loadBalancerIP }}
{{- end }}
{{- if .Values.controller.service.internal.loadBalancerSourceRanges }}
loadBalancerSourceRanges: {{ toYaml .Values.controller.service.internal.loadBalancerSourceRanges | nindent 4 }}
{{- end }}

View file

@ -396,6 +396,8 @@ controller:
enabled: false
annotations: {}
# loadBalancerIP: ""
## Restrict access For LoadBalancer service. Defaults to 0.0.0.0/0.
loadBalancerSourceRanges: []