From 1facd19814a05eedac28d6d6764ddc9f44b04782 Mon Sep 17 00:00:00 2001 From: Jack Forester Date: Tue, 17 Sep 2019 10:59:48 -0400 Subject: [PATCH] [incubator/zookeeper] Allow quorumListenOnAllIPs to be configurable #17183 * Add env.ZK_QUORUM_LISTEN_ALL_IP to values file * Append quorumListenOnAllIPs directive to zoo.cfg Signed-off-by: Jack Forester --- incubator/zookeeper/Chart.yaml | 2 +- incubator/zookeeper/templates/config-script.yaml | 3 ++- incubator/zookeeper/values.yaml | 8 ++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/incubator/zookeeper/Chart.yaml b/incubator/zookeeper/Chart.yaml index 91349c0c6efc..341d0ec9799e 100644 --- a/incubator/zookeeper/Chart.yaml +++ b/incubator/zookeeper/Chart.yaml @@ -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. diff --git a/incubator/zookeeper/templates/config-script.yaml b/incubator/zookeeper/templates/config-script.yaml index 92b5c81811cd..ed7606954b87 100644 --- a/incubator/zookeeper/templates/config-script.yaml +++ b/incubator/zookeeper/templates/config-script.yaml @@ -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 diff --git a/incubator/zookeeper/values.yaml b/incubator/zookeeper/values.yaml index 2fa6286e23f8..95de3af7c332 100644 --- a/incubator/zookeeper/values.yaml +++ b/incubator/zookeeper/values.yaml @@ -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: