diff --git a/charts/backend2/charts/user-app-k8s/templates/service.yaml b/charts/backend2/charts/user-app-k8s/templates/service.yaml index ff6b434..f38bc38 100755 --- a/charts/backend2/charts/user-app-k8s/templates/service.yaml +++ b/charts/backend2/charts/user-app-k8s/templates/service.yaml @@ -11,8 +11,8 @@ spec: port: 9090 targetPort: 9090 protocol: TCP - {{- if eq .Values.type "NodePort" }} - NodePort: {{ .Values.nodePort }} - {{- end }} + {{- if eq .Values.service.type "NodePort" }} + nodePort: {{ .Values.service.nodePort }} + {{- end }} selector: {{- include "user-app.selectorLabels" . | nindent 4 }}