diff --git a/helm/webapp/templates/service.yaml b/helm/webapp/templates/service.yaml index 744c4ed0e..8d40e7138 100644 --- a/helm/webapp/templates/service.yaml +++ b/helm/webapp/templates/service.yaml @@ -9,7 +9,10 @@ spec: ports: - port: {{ .Values.service.port }} targetPort: http + {{- if .Values.service.nodeport }} + nodePort: {{ .Values.service.nodeport }} + {{- end }} protocol: TCP name: http selector: - {{- include "demo.selectorLabels" . | nindent 4 }} \ No newline at end of file + {{- include "demo.selectorLabels" . | nindent 4 }} diff --git a/helm/webapp/values.yaml b/helm/webapp/values.yaml index 1dfbe7666..bb480773d 100644 --- a/helm/webapp/values.yaml +++ b/helm/webapp/values.yaml @@ -37,8 +37,9 @@ securityContext: {} # runAsUser: 1000 service: - type: ClusterIP + type: NodePort port: 80 + nodeport: 32080 ingress: enabled: false