Skip to content

Commit

Permalink
Waits for termination before exiting hook
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Sep 29, 2018
1 parent 8fb8dfa commit af5a8bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafka/50kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
lifecycle:
preStop:
exec:
command: ["./bin/kafka-server-stop.sh"]
command: ["sh", "-ce", "kill -s TERM 1; while $(kill -0 1 2>/dev/null); do sleep 1; done"]
resources:
requests:
cpu: 100m
Expand Down

0 comments on commit af5a8bf

Please sign in to comment.