diff --git a/kafka/50kafka.yml b/kafka/50kafka.yml index ee2d8be4..ba14d01e 100644 --- a/kafka/50kafka.yml +++ b/kafka/50kafka.yml @@ -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