Replace hardcoded port 10254 with variable. This allows to run multiple (#18555)

controllers without port conflicts

Signed-off-by: Andrea Defraia <andrea.defraia@idemia.com>
This commit is contained in:
andrea-defraia
2019-11-05 13:16:40 -08:00
committed by Kubernetes Prow Robot
parent 280f2f92f7
commit e594d32423
4 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: nginx-ingress
version: 1.24.5
version: 1.24.6
appVersion: 0.26.1
home: https://github.com/kubernetes/ingress-nginx
description: An nginx Ingress controller that uses ConfigMap to store the nginx configuration.
@@ -140,7 +140,7 @@ spec:
{{- end }}
{{- if .Values.controller.metrics.enabled }}
- name: metrics
containerPort: 10254
containerPort: {{ .Values.controller.metrics.port }}
protocol: TCP
{{- end }}
{{- if .Values.controller.admissionWebhooks.enabled }}
@@ -136,7 +136,7 @@ spec:
{{- end }}
{{- if .Values.controller.metrics.enabled }}
- name: metrics
containerPort: 10254
containerPort: {{ .Values.controller.metrics.port }}
protocol: TCP
{{- end }}
{{- if .Values.controller.admissionWebhooks.enabled }}
+2
View File
@@ -338,6 +338,8 @@ controller:
nodeSelector: {}
metrics:
port: 10254
# if this port is changed, change healthz-port: in extraArgs: accordingly
enabled: false
service: