diff --git a/chart/templates/ingress-redirects.yaml b/chart/templates/ingress-redirects.yaml index ac82ccb72c0d5cca2c4d30c4abdeeabd72442169..828f902394290a15c16432c2e1d08a6f62ed40bf 100644 --- a/chart/templates/ingress-redirects.yaml +++ b/chart/templates/ingress-redirects.yaml @@ -21,13 +21,14 @@ spec: secretName: {{ .Values.ingress.tls.secretName | default (printf "%s-redirects-tls" (include "fullname" .)) }} {{- end }} rules: +{{- $dot := . }} {{- range $host := .Values.service.redirectHosts }} - host: {{ $host }} http: paths: - path: / backend: - serviceName: {{ template "fullname" . }} + serviceName: {{ template "fullname" $dot }} servicePort: {{ .Values.service.externalPort }} {{- end -}} {{- end }}