[bitnami/nginx-ingress-controller] Allow users to enable or disable http/https service port (#5830)

This commit is contained in:
Ween Jiann
2021-03-18 09:46:06 +01:00
committed by GitHub
parent a57bce06d6
commit 02ca6f9443
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -26,4 +26,4 @@ name: nginx-ingress-controller
sources:
- https://github.com/bitnami/bitnami-docker-nginx-ingress-controller
- https://github.com/kubernetes/ingress-nginx
version: 7.4.9
version: 7.4.10
+1 -1
View File
@@ -192,7 +192,7 @@ The following tables lists the configurable parameters of the Nginx Ingress Cont
| `service.clusterIP` | Controller Internal Cluster Service IP | `""` |
| `service.omitClusterIP` | To omit the `ClusterIP` from the controller service | `false` |
| `service.ports.http` | Controller Service HTTP port | `80` |
| `service.ports.https` | Controller Service HTTPS port | `""` |
| `service.ports.https` | Controller Service HTTPS port | `443` |
| `service.targetPorts.http` | Map the controller service HTTP port | `http` |
| `service.targetPorts.https` | Map the controller service HTTPS port | `https` |
| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` |
@@ -41,6 +41,7 @@ spec:
healthCheckNodePort: {{ .Values.service.healthCheckNodePort }}
{{- end }}
ports:
{{- if not (empty .Values.service.ports.http) }}
- name: http
port: {{ .Values.service.ports.http }}
protocol: TCP
@@ -50,6 +51,8 @@ spec:
{{- else if eq .Values.service.type "ClusterIP" }}
nodePort: null
{{- end }}
{{- end }}
{{- if not (empty .Values.service.ports.https) }}
- name: https
port: {{ .Values.service.ports.https }}
protocol: TCP
@@ -59,6 +62,7 @@ spec:
{{- else if eq .Values.service.type "ClusterIP" }}
nodePort: null
{{- end }}
{{- end }}
{{- range $key, $value := .Values.tcp }}
- name: {{ $key }}-tcp
port: {{ $key }}