Skip to content

Commit

Permalink
Replace own host name with 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
srolija committed Jan 13, 2019
1 parent 41d21f8 commit a1d6892
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion charts/cp-zookeeper/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ spec:
command:
- "bash"
- "-c"
- "ZOOKEEPER_SERVER_ID=$((${HOSTNAME##*-}+1)) && /etc/confluent/docker/run"
- |
ZK_FIX_HOST_REGEX="s/${HOSTNAME}\.[^:]*:/0.0.0.0:/g"
ZOOKEEPER_SERVER_ID=$((${HOSTNAME##*-}+1)) \
ZOOKEEPER_SERVERS=`echo $ZOOKEEPER_SERVERS | sed -e "$ZK_FIX_HOST_REGEX"` \
/etc/confluent/docker/run
volumeMounts:
- name: datadir
mountPath: /var/lib/zookeeper/data
Expand Down

0 comments on commit a1d6892

Please sign in to comment.