Skip to content

Commit

Permalink
Fixes the zoo service names. Only pzoo was correct.
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Jul 12, 2020
1 parent 2eeaa00 commit 2c05b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zookeeper/10zookeeper-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data:
[ ! -z "$PZOO_REPLICAS" ] && [ ! -z "$REPLICAS" ] && {
sed -i "s/^server\\./#server./" /etc/kafka/zookeeper.properties
for N in $(seq $PZOO_REPLICAS); do echo "server.$N=pzoo-$(( $N - 1 )).pzoo.$POD_NAMESPACE.svc.cluster.local:2888:3888:participant" >> /etc/kafka/zookeeper.properties; done
for N in $(seq $(( $REPLICAS - $PZOO_REPLICAS ))); do echo "server.$(( $PZOO_REPLICAS + $N ))=zoo-$(( $N - 1 )).$POD_NAMESPACE.svc.cluster.local:2888:3888:participant" >> /etc/kafka/zookeeper.properties; done
for N in $(seq $(( $REPLICAS - $PZOO_REPLICAS ))); do echo "server.$(( $PZOO_REPLICAS + $N ))=zoo-$(( $N - 1 )).zoo.$POD_NAMESPACE.svc.cluster.local:2888:3888:participant" >> /etc/kafka/zookeeper.properties; done
}
ln -s /etc/kafka/zookeeper.properties /etc/kafka/zookeeper.properties.scale-$REPLICAS.$POD_NAME
Expand Down

0 comments on commit 2c05b72

Please sign in to comment.