diff --git a/charts/nginx-ingress/templates/ingress.yaml b/charts/nginx-ingress/templates/ingress.yaml index 63cfce0..2fb2bc3 100644 --- a/charts/nginx-ingress/templates/ingress.yaml +++ b/charts/nginx-ingress/templates/ingress.yaml @@ -49,12 +49,12 @@ spec: backend: {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} service: - name: {{ $fullName }} + name: {{ .backendService }} port: - number: {{ $svcPort }} + number: {{ .backendPort }} {{- else }} - serviceName: {{ $fullName }} - servicePort: {{ $svcPort }} + serviceName: {{ .backendService }} + servicePort: {{ .backendPort }} {{- end }} {{- end }} {{- end }}