diff --git a/ingress/templates/bin/_ingress-controller.sh.tpl b/ingress/templates/bin/_ingress-controller.sh.tpl index dff7f0ae6..7631727b2 100644 --- a/ingress/templates/bin/_ingress-controller.sh.tpl +++ b/ingress/templates/bin/_ingress-controller.sh.tpl @@ -30,6 +30,7 @@ function start () { --https-port=${PORT_HTTPS} \ --healthz-port=${PORT_HEALTHZ} \ --status-port=${PORT_STATUS} \ + --default-server-port=${DEFAULT_SERVER_PORT} \ --election-id=${RELEASE_NAME} \ --ingress-class=${INGRESS_CLASS} \ --default-backend-service=${POD_NAMESPACE}/${ERROR_PAGE_SERVICE} \ diff --git a/ingress/templates/deployment-ingress.yaml b/ingress/templates/deployment-ingress.yaml index 567cd5ef0..c3134d9ae 100644 --- a/ingress/templates/deployment-ingress.yaml +++ b/ingress/templates/deployment-ingress.yaml @@ -259,6 +259,8 @@ spec: value: {{ tuple "ingress" "internal" "status" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }} - name: PORT_HEALTHZ value: {{ tuple "ingress" "internal" "healthz" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }} + - name: DEFAULT_SERVER_PORT + value: {{ tuple "ingress" "internal" "server" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }} - name: RELEASE_NAME value: {{ .Release.Name | quote }} - name: ERROR_PAGE_SERVICE @@ -281,6 +283,10 @@ spec: {{- if .Values.network.host_namespace }} hostPort: {{ tuple "ingress" "internal" "healthz" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} {{- end }} + - containerPort: {{ tuple "ingress" "internal" "server" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} + {{- if .Values.network.host_namespace }} + hostPort: {{ tuple "ingress" "internal" "server" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} + {{- end }} command: - /tmp/ingress-controller.sh - start diff --git a/ingress/values.yaml b/ingress/values.yaml index 9f4715c59..c1c4ecdaa 100644 --- a/ingress/values.yaml +++ b/ingress/values.yaml @@ -165,6 +165,8 @@ endpoints: default: 10254 status: default: 18080 + server: + default: 8181 ingress_exporter: namespace: null hosts: