helm chart: choice option for internal/external loadbalancer type service (#7806)
This commit is contained in:
parent
b08d4278ad
commit
7d17ff35fa
3 changed files with 9 additions and 2 deletions
|
@ -3,8 +3,12 @@
|
||||||
{{- if .Values.defaultBackend.enabled }}
|
{{- if .Values.defaultBackend.enabled }}
|
||||||
- --default-backend-service=$(POD_NAMESPACE)/{{ include "ingress-nginx.defaultBackend.fullname" . }}
|
- --default-backend-service=$(POD_NAMESPACE)/{{ include "ingress-nginx.defaultBackend.fullname" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.controller.publishService.enabled }}
|
{{- if and .Values.controller.publishService.enabled .Values.controller.service.enabled }}
|
||||||
|
{{- if .Values.controller.service.external.enabled }}
|
||||||
- --publish-service={{ template "ingress-nginx.controller.publishServicePath" . }}
|
- --publish-service={{ template "ingress-nginx.controller.publishServicePath" . }}
|
||||||
|
{{- else if .Values.controller.service.internal.enabled }}
|
||||||
|
- --publish-service={{ template "ingress-nginx.controller.publishServicePath" . }}-internal
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- --election-id={{ .Values.controller.electionID }}
|
- --election-id={{ .Values.controller.electionID }}
|
||||||
- --controller-class={{ .Values.controller.ingressClassResource.controllerValue }}
|
- --controller-class={{ .Values.controller.ingressClassResource.controllerValue }}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{- if .Values.controller.service.enabled -}}
|
{{- if and .Values.controller.service.enabled .Values.controller.service.external.enabled -}}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
@ -494,6 +494,9 @@ controller:
|
||||||
tcp: {}
|
tcp: {}
|
||||||
udp: {}
|
udp: {}
|
||||||
|
|
||||||
|
external:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
## Enables an additional internal load balancer (besides the external one).
|
## Enables an additional internal load balancer (besides the external one).
|
||||||
## Annotations are mandatory for the load balancer to come up. Varies with the cloud service.
|
## Annotations are mandatory for the load balancer to come up. Varies with the cloud service.
|
||||||
internal:
|
internal:
|
||||||
|
|
Loading…
Reference in a new issue