From 73e0e5b7a0d262e828147321679efc2a3710f705 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Sun, 15 Oct 2017 13:06:05 +0200 Subject: [PATCH] Revert "Uses pod name for broker id"; keep doing like before and like zoo This reverts commit dcdac0fb36a4476f494af419527ba42f279c485b. --- 10broker-config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 || {