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 }