Skip to content

Commit 705c1b9

Browse files
committed
Simplify worker's docker join
Signed-off-by: David Gageot <[email protected]>
1 parent a49da30 commit 705c1b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcp/configuration/templates/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def GenerateConfig(context):
2323
LEADER_IP=$(curl -sSL "https://runtimeconfig.googleapis.com/v1beta1/projects/${PROJECT}/configs/swarm-config/variables/leader-ip" -H "Authorization":"Bearer ${ACCESS_TOKEN}" | jq -r ".text // empty")
2424
if [ ! -z "${LEADER_IP}" ]; then
2525
TOKEN=$(curl -sSL "https://runtimeconfig.googleapis.com/v1beta1/projects/${PROJECT}/configs/swarm-config/variables/worker-token" -H "Authorization":"Bearer ${ACCESS_TOKEN}" | jq -r ".text // empty")
26-
docker swarm join --token "${TOKEN}" "${LEADER_IP}" --advertise-addr eth0:2377 --listen-addr eth0:2377
26+
docker swarm join --token "${TOKEN}" "${LEADER_IP}"
2727
break
2828
fi
2929

0 commit comments

Comments
 (0)