diff --git a/charts/py-app/templates/service.yaml b/charts/py-app/templates/service.yaml index d46068c..b3f583e 100644 --- a/charts/py-app/templates/service.yaml +++ b/charts/py-app/templates/service.yaml @@ -12,6 +12,9 @@ spec: targetPort: http protocol: TCP name: http + {{- if eq .Values.service.type "NodePort" }} + nodePort: {{ .Values.service.nodePort }} + {{- end }} selector: {{- include "py-app.selectorLabels" . | nindent 4 }} deployment_type: web