File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 26
26
LABELS="$LABELS kafka-broker-rack=$ZONE"
27
27
fi
28
28
29
+ [ -z "$INSIDE_HOST" ] && echo "INSIDE_HOST is empty, will advetise detected DNS name"
29
30
OUTSIDE_HOST=$(kubectl get node "$NODE_NAME" -o jsonpath='{.status.addresses[?(@.type=="InternalIP")].address}')
30
31
OUTSIDE_PORT=$((32400 + ${KAFKA_BROKER_ID}))
31
- SEDS+=("s|#init#advertised.listeners=PLAINTEXT://#init#|advertised.listeners=PLAINTEXT://${ADVERTISE_ADDRESS }:9092,OUTSIDE://${OUTSIDE_HOST}:${OUTSIDE_PORT}|")
32
+ SEDS+=("s|#init#advertised.listeners=PLAINTEXT://#init#|advertised.listeners=PLAINTEXT://${INSIDE_HOST }:9092,OUTSIDE://${OUTSIDE_HOST}:${OUTSIDE_PORT}|")
32
33
ANNOTATIONS="$ANNOTATIONS kafka-listener-outside-host=$OUTSIDE_HOST kafka-listener-outside-port=$OUTSIDE_PORT"
33
34
34
35
if [ ! -z "$LABELS" ]; then
You can’t perform that action at this time.
0 commit comments