From 449f89c6a7fb0f44230834b7431b3ccee21a583c Mon Sep 17 00:00:00 2001 From: Mohammad Abusaa Date: Sat, 1 Oct 2022 12:53:52 +0300 Subject: [PATCH 1/3] Update service.yaml --- helm/webapp/templates/service.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/helm/webapp/templates/service.yaml b/helm/webapp/templates/service.yaml index 744c4ed0e..40eb81c5a 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.port }} + {{- end }} protocol: TCP name: http selector: - {{- include "demo.selectorLabels" . | nindent 4 }} \ No newline at end of file + {{- include "demo.selectorLabels" . | nindent 4 }} From baf40954f220698f482065a4e4594e2f3a7d1e2f Mon Sep 17 00:00:00 2001 From: Mohammad Abusaa Date: Sat, 1 Oct 2022 12:54:26 +0300 Subject: [PATCH 2/3] Update values.yaml --- helm/webapp/values.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 From 0749f902c21ddbea8352c4aa5505b19b0cd86688 Mon Sep 17 00:00:00 2001 From: Mohammad Abusaa Date: Sat, 1 Oct 2022 16:19:46 +0300 Subject: [PATCH 3/3] Update service.yaml --- helm/webapp/templates/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/webapp/templates/service.yaml b/helm/webapp/templates/service.yaml index 40eb81c5a..8d40e7138 100644 --- a/helm/webapp/templates/service.yaml +++ b/helm/webapp/templates/service.yaml @@ -10,7 +10,7 @@ spec: - port: {{ .Values.service.port }} targetPort: http {{- if .Values.service.nodeport }} - nodePort: {{ .Values.service.port }} + nodePort: {{ .Values.service.nodeport }} {{- end }} protocol: TCP name: http