[bitnami/nginx-ingress-controller] fix: 🐛 🔒 Expose missing ports in deployment spec (#25134)

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
This commit is contained in:
Javier J. Salmerón-García
2024-04-12 12:14:45 +02:00
committed by GitHub
parent 503e1a7456
commit 73fd3db479
4 changed files with 35 additions and 3 deletions

View File

@@ -34,4 +34,4 @@ maintainers:
name: nginx-ingress-controller
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/nginx-ingress-controller
version: 11.0.2
version: 11.1.0

View File

@@ -125,7 +125,13 @@ As an alternative, you can use of the preset configurations for pod affinity, po
| `image.digest` | Nginx Ingress Controller image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | `""` |
| `image.pullPolicy` | Nginx Ingress Controller image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` |
| `containerPorts` | Controller container ports to open | `{}` |
| `containerPorts.http` | Nginx Ingress Controller HTTP port | `8080` |
| `containerPorts.https` | Nginx Ingress Controller HTTPS port | `8443` |
| `containerPorts.defaultServer` | Nginx Ingress Controller default server port | `8181` |
| `containerPorts.metrics` | Nginx Ingress Controller metrics port | `10254` |
| `containerPorts.profiler` | Nginx Ingress Controller profiler port | `10245` |
| `containerPorts.status` | Nginx Ingress Controller status port | `10246` |
| `containerPorts.stream` | Nginx Ingress Controller stream port | `10247` |
| `automountServiceAccountToken` | Mount Service Account token in pod | `true` |
| `hostAliases` | Deployment pod host aliases | `[]` |
| `config` | Custom configuration options for NGINX | `{}` |

View File

@@ -121,7 +121,11 @@ spec:
{{- end }}
- --http-port={{ .Values.containerPorts.http }}
- --https-port={{ .Values.containerPorts.https }}
- --default-server-port={{ .Values.containerPorts.defaultServer }}
- --healthz-port={{ .Values.containerPorts.metrics }}
- --profiler-port={{ .Values.containerPorts.profiler }}
- --status-port={{ .Values.containerPorts.status }}
- --stream-port={{ .Values.containerPorts.stream }}
- --election-id={{ .Values.electionID }}
- --controller-class={{ .Values.ingressClassResource.controllerClass }}
- --configmap={{ default "$(POD_NAMESPACE)" .Values.configMapNamespace }}/{{ include "common.names.fullname" . }}
@@ -204,9 +208,21 @@ spec:
- name: https
containerPort: {{ .Values.containerPorts.https }}
protocol: TCP
- name: default-server
containerPort: {{ .Values.containerPorts.defaultServer }}
protocol: TCP
- name: metrics
containerPort: {{ .Values.containerPorts.metrics }}
protocol: TCP
- name: profiler
containerPort: {{ .Values.containerPorts.profiler }}
protocol: TCP
- name: status
containerPort: {{ .Values.containerPorts.status }}
protocol: TCP
- name: stream
containerPort: {{ .Values.containerPorts.stream }}
protocol: TCP
{{- range $key, $value := .Values.tcp }}
- name: "{{ $key }}-tcp"
containerPort: {{ $key }}

View File

@@ -80,12 +80,22 @@ image:
## - myRegistryKeySecretName
##
pullSecrets: []
## @param containerPorts [object] Controller container ports to open
## @param containerPorts.http Nginx Ingress Controller HTTP port
## @param containerPorts.https Nginx Ingress Controller HTTPS port
## @param containerPorts.defaultServer Nginx Ingress Controller default server port
## @param containerPorts.metrics Nginx Ingress Controller metrics port
## @param containerPorts.profiler Nginx Ingress Controller profiler port
## @param containerPorts.status Nginx Ingress Controller status port
## @param containerPorts.stream Nginx Ingress Controller stream port
##
containerPorts:
http: 8080
https: 8443
defaultServer: 8181
metrics: 10254
profiler: 10245
status: 10246
stream: 10247
## @param automountServiceAccountToken Mount Service Account token in pod
##
automountServiceAccountToken: true