From fca23f805a4d3db980487e9d28393a2277b168a2 Mon Sep 17 00:00:00 2001 From: Murali Reddy Date: Thu, 27 Feb 2020 12:43:58 +0530 Subject: [PATCH] modify launch.sh to launch weaver with --no-masq-local by default --- prog/weave-kube/launch.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/prog/weave-kube/launch.sh b/prog/weave-kube/launch.sh index d6e68a1e..01ea699b 100755 --- a/prog/weave-kube/launch.sh +++ b/prog/weave-kube/launch.sh @@ -67,6 +67,7 @@ DB_PREFIX=${DB_PREFIX:-/weavedb/weave-net} # Default for network policy EXPECT_NPC=${EXPECT_NPC:-1} +NO_MASQ_LOCAL=${NO_MASQ_LOCAL:-1} # Ensure we have the required modules for NPC if [ "${EXPECT_NPC}" != "0" ]; then @@ -96,9 +97,9 @@ if [ "${EXPECT_NPC}" = "0" ]; then WEAVE_NPC_OPTS="" fi -NO_MASQ_LOCAL_OPT="" -if [ -n "${NO_MASQ_LOCAL}" ]; then - NO_MASQ_LOCAL_OPT="--no-masq-local" +NO_MASQ_LOCAL_OPT="--no-masq-local" +if [ "${NO_MASQ_LOCAL}" = "0" ]; then + NO_MASQ_LOCAL_OPT="" fi # Kubernetes sets HOSTNAME to the host's hostname