From 6168ce29a73e5bf49ce584dc151615a500264bd4 Mon Sep 17 00:00:00 2001 From: Peter Nguyen <67582708+quoc9x@users.noreply.github.com> Date: Sat, 3 Sep 2022 01:28:40 +0700 Subject: [PATCH] Update service.yaml Flexible nodePort for service (if service.type = NodePort) --- kowl/templates/service.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kowl/templates/service.yaml b/kowl/templates/service.yaml index b4901da..73e1c6d 100644 --- a/kowl/templates/service.yaml +++ b/kowl/templates/service.yaml @@ -13,6 +13,9 @@ spec: ports: - port: {{ .Values.service.port }} targetPort: {{ .Values.service.targetPort }} + {{- if eq .Values.service.type "NodePort" }} + nodePort: {{ .Values.service.nodePort }} + {{- end }} protocol: TCP name: http selector: