fix(omada): set also targetPort to the same port so everything works correctly (#4440)
This commit is contained in:
@@ -1 +1,24 @@
|
||||
{{ include "tc.common.loader.all" . }}
|
||||
{{/* Render the templates */}}
|
||||
{{ include "tc.common.loader.init" . }}
|
||||
|
||||
{{/*
|
||||
Omada automatically redirects to that port.
|
||||
Instead of consuming the external 443 port, it's better to switch internal
|
||||
But still give user the ability to change it.
|
||||
When ingress is enabled, set this to 443, otherwise set it to whatever `port` is set to
|
||||
*/}}
|
||||
|
||||
{{- $port := .Values.service.main.ports.main.port -}}
|
||||
{{- if .Values.ingress.main.enabled -}}
|
||||
{{- $port = 443 -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $_ := set .Values.env "MANAGE_HTTPS_PORT" $port -}}
|
||||
|
||||
{{- $_ := set .Values.service.main.ports.main "targetPort" $port -}}
|
||||
|
||||
{{- $_ := set .Values.probes.liveness "port" $port -}}
|
||||
{{- $_ := set .Values.probes.readiness "port" $port -}}
|
||||
{{- $_ := set .Values.probes.startup "port" $port -}}
|
||||
|
||||
{{ include "tc.common.loader.apply" . }}
|
||||
|
||||
Reference in New Issue
Block a user