Skip to content

Commit 40488e6

Browse files
committed
Uses pod name for broker id, instead of the host=pod assumption
1 parent 198833a commit 40488e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

10broker-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ data:
88
#!/bin/bash
99
set -x
1010
11-
KAFKA_BROKER_ID=${HOSTNAME##*-}
11+
KAFKA_BROKER_ID=${POD_NAME##*-}
1212
sed -i "s/#init#broker.id=#init#/broker.id=$KAFKA_BROKER_ID/" /etc/kafka/server.properties
1313
1414
hash kubectl 2>/dev/null || {

0 commit comments

Comments
 (0)