From bbd631f08f7e3fe32132e3d1ab6c06304b3ceead Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Fri, 9 Dec 2016 13:22:16 +0000 Subject: [PATCH] weave-kube no longer needs to supply the peer address --- prog/weave-kube/launch.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/prog/weave-kube/launch.sh b/prog/weave-kube/launch.sh index 8ad397c4..458386f4 100755 --- a/prog/weave-kube/launch.sh +++ b/prog/weave-kube/launch.sh @@ -22,8 +22,7 @@ else fi fi -# Need to create bridge before running weaver so we can use the peer address -# (because of https://github.com/weaveworks/weave/issues/2480) +# Explicitly create the bridge so we can pass --expect-npc WEAVE_NPC_OPTS="--expect-npc" if [ "${EXPECT_NPC}" = "0" ]; then WEAVE_NPC_OPTS="" @@ -69,7 +68,7 @@ fi --http-addr=$HTTP_ADDR --status-addr=$STATUS_ADDR --docker-api='' --no-dns \ --ipalloc-range=$IPALLOC_RANGE $NICKNAME_ARG \ --ipalloc-init $IPALLOC_INIT \ - --name=$(cat /sys/class/net/weave/address) "$@" \ + "$@" \ $KUBE_PEERS & WEAVE_PID=$!