Add NO_MASQ_LOCAL to weave-kube/launch.sh
One can enable the feature by setting NO_MASQ_LOCAL=1 among env vars of the weave-kube DaemonSet.
This commit is contained in:
1 parent
a0ec06a487
commit
6dbe95a0b5
1 file changed
+6
@@ -66,6 +66,11 @@ if [ "${EXPECT_NPC}" = "0" ]; then
|
|||||||
WEAVE_NPC_OPTS=""
|
WEAVE_NPC_OPTS=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
NO_MASQ_LOCAL_OPT=""
|
||||||
|
if [ -n "${NO_MASQ_LOCAL}" ]; then
|
||||||
|
NO_MASQ_LOCAL_OPT="--no-masq-local"
|
||||||
|
fi
|
||||||
|
|
||||||
# Kubernetes sets HOSTNAME to the host's hostname
|
# Kubernetes sets HOSTNAME to the host's hostname
|
||||||
# when running a pod in host namespace.
|
# when running a pod in host namespace.
|
||||||
NICKNAME_ARG=""
|
NICKNAME_ARG=""
|
||||||
@@ -156,5 +161,6 @@ post_start_actions &
|
|||||||
--ipalloc-init $IPALLOC_INIT \
|
--ipalloc-init $IPALLOC_INIT \
|
||||||
--conn-limit=$CONN_LIMIT \
|
--conn-limit=$CONN_LIMIT \
|
||||||
$WEAVE_NPC_OPTS \
|
$WEAVE_NPC_OPTS \
|
||||||
|
$NO_MASQ_LOCAL_OPT \
|
||||||
"$@" \
|
"$@" \
|
||||||
$KUBE_PEERS
|
$KUBE_PEERS
|
||||||
Reference in new issue
Block a user