You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by ni...@apache.org on 2021/11/05 21:55:41 UTC

[incubator-heron] 02/04: Now support custom NodePort port number

This is an automated email from the ASF dual-hosted git repository.

nicknezis pushed a commit to branch helm-nodeport
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git

commit a2033d77fde056784f67660c1ab0459ee0ad5061
Author: Windham Wong <wi...@stormeye.io>
AuthorDate: Mon Oct 25 17:13:49 2021 +0800

    Now support custom NodePort port number
---
 deploy/kubernetes/helm/templates/tools.yaml | 5 ++++-
 deploy/kubernetes/helm/values.yaml.template | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/deploy/kubernetes/helm/templates/tools.yaml b/deploy/kubernetes/helm/templates/tools.yaml
index 48a8cf3..5bee96b 100644
--- a/deploy/kubernetes/helm/templates/tools.yaml
+++ b/deploy/kubernetes/helm/templates/tools.yaml
@@ -285,7 +285,10 @@ spec:
     - port: 9000
       targetPort: 9000
       protocol: TCP
-  {{- if eq .Values.apiserver.NodePort true }}
+      {{- if not (empty .Values.apiserver.NodePort) }}
+      nodePort: {{ .Values.apiserver.NodePort }}
+      {{- end }}
+  {{- if not (empty .Values.apiserver.NodePort) }}
   type: NodePort
   {{- else }}
   type: ClusterIP
diff --git a/deploy/kubernetes/helm/values.yaml.template b/deploy/kubernetes/helm/values.yaml.template
index 746cad7..3d20045 100644
--- a/deploy/kubernetes/helm/values.yaml.template
+++ b/deploy/kubernetes/helm/values.yaml.template
@@ -44,7 +44,7 @@ heron:
   url: "-"
 
 apiserver:
-  NodePort: true
+  NodePort: 32090
 
 # Can be EQUAL_TO_LIMIT or NOT_SET
 topologyResourceRequestMode: EQUAL_TO_LIMIT