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 f079c1b82aae5ff5a3217a411a31511167ac8251 Author: Windham Wong <[email protected]> AuthorDate: Mon Oct 25 16:03:20 2021 +0800 Adding option to switch the apiserver service between NodePort and ClusterIP --- deploy/kubernetes/helm/templates/tools.yaml | 5 +++++ deploy/kubernetes/helm/values.yaml.template | 3 +++ 2 files changed, 8 insertions(+) diff --git a/deploy/kubernetes/helm/templates/tools.yaml b/deploy/kubernetes/helm/templates/tools.yaml index 123f0e2..48a8cf3 100644 --- a/deploy/kubernetes/helm/templates/tools.yaml +++ b/deploy/kubernetes/helm/templates/tools.yaml @@ -285,7 +285,12 @@ spec: - port: 9000 targetPort: 9000 protocol: TCP + {{- if eq .Values.apiserver.NodePort true }} type: NodePort + {{- else }} + type: ClusterIP + {{- end }} + selector: app: {{ .Release.Name }}-tools release: {{ .Release.Name }} diff --git a/deploy/kubernetes/helm/values.yaml.template b/deploy/kubernetes/helm/values.yaml.template index 61daf04..746cad7 100644 --- a/deploy/kubernetes/helm/values.yaml.template +++ b/deploy/kubernetes/helm/values.yaml.template @@ -43,6 +43,9 @@ heron: # set to `null` to remove the use of base_url url: "-" +apiserver: + NodePort: true + # Can be EQUAL_TO_LIMIT or NOT_SET topologyResourceRequestMode: EQUAL_TO_LIMIT
