Skip to content

Commit

Permalink
[incubator/zookeeper] Allow quorumListenOnAllIPs to be configurable h…
Browse files Browse the repository at this point in the history
…elm#17183

* Add env.ZK_QUORUM_LISTEN_ALL_IP to values file
* Append quorumListenOnAllIPs directive to zoo.cfg

Signed-off-by: Jack Forester <[email protected]>
  • Loading branch information
jlforester committed Sep 17, 2019
1 parent d2d77f5 commit 1facd19
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion incubator/zookeeper/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: zookeeper
home: https://zookeeper.apache.org/
version: 2.0.1
version: 2.0.2
appVersion: 3.5.5
description: Centralized service for maintaining configuration information, naming,
providing distributed synchronization, and providing group services.
Expand Down
3 changes: 2 additions & 1 deletion incubator/zookeeper/templates/config-script.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ data:
echo "autopurge.snapRetainCount=$ZK_SNAP_RETAIN_COUNT" >> $ZK_CONFIG_FILE
echo "autopurge.purgeInterval=$ZK_PURGE_INTERVAL" >> $ZK_CONFIG_FILE
echo "4lw.commands.whitelist=*" >> $ZK_CONFIG_FILE
echo "quorumListenOnAllIPs=$ZK_QUORUM_LISTEN_ALL_IP" >> $ZK_CONFIG_FILE
for (( i=1; i<=$ZK_REPLICAS; i++ ))
do
echo "server.$i=$NAME-$((i-1)).$DOMAIN:$ZK_SERVER_PORT:$ZK_ELECTION_PORT" >> $ZK_CONFIG_FILE
Expand Down
8 changes: 8 additions & 0 deletions incubator/zookeeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,14 @@ env:
ZOO_AUTOPURGE_SNAPRETAINCOUNT: 3
ZOO_STANDALONE_ENABLED: false

## When ZK_QUORUM_LISTEN_ALL_IP is set to true, the ZooKeeper server will listen for
## connections from its peers on all available IP addresses, and not only the address
## configured in the server list of the configuration file. It affects the connections
## handling the ZAB protocol and the Fast Leader Election protocol. Default value is
## false. Set to true when using Istio

ZK_QUORUM_LISTEN_ALL_IP: false

jobs:
## ref: http://zookeeper.apache.org/doc/r3.4.10/zookeeperProgrammers.html#ch_zkSessions
chroots:
Expand Down

0 comments on commit 1facd19

Please sign in to comment.