From 8b2c941cd9cfd74124d3f330914124ee6c76605a Mon Sep 17 00:00:00 2001 From: Dev Jadeja Date: Wed, 5 Feb 2025 20:16:48 +0530 Subject: [PATCH] feature: nodeport service type compatibility --- charts/py-app/templates/service.yaml | 3 +++ 1 file changed, 3 insertions(+) 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