Skip to content

Commit

Permalink
Zookeeper's shutdown is identical in the kafka dist too
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Sep 29, 2018
1 parent af5a8bf commit e282aec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zookeeper/50pzoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ spec:
command:
- ./bin/zookeeper-server-start.sh
- /etc/kafka/zookeeper.properties
lifecycle:
preStop:
exec:
command: ["sh", "-ce", "kill -s TERM 1; while $(kill -0 1 2>/dev/null); do sleep 1; done"]
ports:
- containerPort: 2181
name: client
Expand Down
4 changes: 4 additions & 0 deletions zookeeper/51zoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ spec:
command:
- ./bin/zookeeper-server-start.sh
- /etc/kafka/zookeeper.properties
lifecycle:
preStop:
exec:
command: ["sh", "-ce", "kill -s TERM 1; while $(kill -0 1 2>/dev/null); do sleep 1; done"]
ports:
- containerPort: 2181
name: client
Expand Down

0 comments on commit e282aec

Please sign in to comment.