Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Commit 11d6332

Browse files
authored
Fix Helm chart to support clustered Zookeepers (#3611)
1 parent f3ba285 commit 11d6332

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deploy/kubernetes/helm/templates/zookeeper.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ spec:
118118
value: "{{ .Values.zookeeper.serverPort }}"
119119
- name: ZK_ELECTION_PORT
120120
value: "{{ .Values.zookeeper.leaderElectionPort }}"
121+
- name: ZOOKEEPER_SERVERS
122+
{{- $replicaCount := int .Values.zkReplicas }}
123+
{{- $fullName := printf "%s-%s" .Release.Name "zookeeper" }}
124+
value: "{{ range $i, $e := until $replicaCount }}{{ fullName }}-{{ $e }},{{ end }}"
121125
command:
122126
- sh
123127
- -c

0 commit comments

Comments
 (0)