helm chart: choice option for internal/external loadbalancer type service (#7806)

This commit is contained in:
Nithya 2021-11-15 23:13:52 +00:00 committed by GitHub
parent b08d4278ad
commit 7d17ff35fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View file

@ -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 }}

View file

@ -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:

View file

@ -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: