From 626bf2bbbc2c406b115db4b130ca93e0bc31c190 Mon Sep 17 00:00:00 2001 From: Francois Ferrand Date: Thu, 15 Aug 2024 18:14:20 +0200 Subject: [PATCH] debug: Add extra port-mapping for kafka DR Issue: ZENKO-4856 --- .github/scripts/end2end/bootstrap-kind.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/scripts/end2end/bootstrap-kind.sh b/.github/scripts/end2end/bootstrap-kind.sh index c075ef4e83..c6e55c5d10 100755 --- a/.github/scripts/end2end/bootstrap-kind.sh +++ b/.github/scripts/end2end/bootstrap-kind.sh @@ -33,7 +33,6 @@ connect_registry() { add_workers() { local count=0 while [ $count -lt $WORKER_NODE_COUNT ]; do - count=$((count+1)) echo "- role: worker image: ${NODE_IMAGE} extraMounts: @@ -41,6 +40,14 @@ add_workers() { containerPath: /data - hostPath: ${HOME}/.docker/config.json containerPath: /var/lib/kubelet/config.json" + # Extra port mapping for kafka external listener + if [ $count -eq 0 ]; then + echo " extraPortMappings: + - containerPort: 9094 + hostPort: 9094 +ยง protocol: TCP" + fi + count=$((count+1)) done }