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 2020/09/08 02:50:06 UTC

[incubator-heron] branch master updated: Fix Helm chart to support clustered Zookeepers (#3611)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 11d6332  Fix Helm chart to support clustered Zookeepers (#3611)
11d6332 is described below

commit 11d6332134e86974dd7a1423bb93d7ba232e0310
Author: Nicholas Nezis <ni...@gmail.com>
AuthorDate: Mon Sep 7 22:49:57 2020 -0400

    Fix Helm chart to support clustered Zookeepers (#3611)
---
 deploy/kubernetes/helm/templates/zookeeper.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/deploy/kubernetes/helm/templates/zookeeper.yaml b/deploy/kubernetes/helm/templates/zookeeper.yaml
index 725957f..4d2a9cf 100644
--- a/deploy/kubernetes/helm/templates/zookeeper.yaml
+++ b/deploy/kubernetes/helm/templates/zookeeper.yaml
@@ -118,6 +118,10 @@ spec:
           value: "{{ .Values.zookeeper.serverPort }}"
         - name: ZK_ELECTION_PORT
           value: "{{ .Values.zookeeper.leaderElectionPort }}"
+        - name: ZOOKEEPER_SERVERS
+          {{- $replicaCount := int .Values.zkReplicas }}
+          {{- $fullName := printf "%s-%s" .Release.Name "zookeeper" }}
+          value: "{{ range $i, $e := until $replicaCount }}{{ fullName }}-{{ $e }},{{ end }}"
         command:
         - sh
         - -c