diff --git a/10broker-config.yml b/10broker-config.yml index b899401d..312df3b9 100644 --- a/10broker-config.yml +++ b/10broker-config.yml @@ -8,7 +8,7 @@ data: #!/bin/bash set -x - KAFKA_BROKER_ID=${POD_NAME##*-} + KAFKA_BROKER_ID=${HOSTNAME##*-} sed -i "s/#init#broker.id=#init#/broker.id=$KAFKA_BROKER_ID/" /etc/kafka/server.properties hash kubectl 2>/dev/null || {