modify launch.sh to launch weaver with --no-masq-local by default
This commit is contained in:
1 parent
f9e27f76d6
commit
fca23f805a
1 file changed
+4
-3
@@ -67,6 +67,7 @@ DB_PREFIX=${DB_PREFIX:-/weavedb/weave-net}
|
|||||||
|
|
||||||
# Default for network policy
|
# Default for network policy
|
||||||
EXPECT_NPC=${EXPECT_NPC:-1}
|
EXPECT_NPC=${EXPECT_NPC:-1}
|
||||||
|
NO_MASQ_LOCAL=${NO_MASQ_LOCAL:-1}
|
||||||
|
|
||||||
# Ensure we have the required modules for NPC
|
# Ensure we have the required modules for NPC
|
||||||
if [ "${EXPECT_NPC}" != "0" ]; then
|
if [ "${EXPECT_NPC}" != "0" ]; then
|
||||||
@@ -96,9 +97,9 @@ if [ "${EXPECT_NPC}" = "0" ]; then
|
|||||||
WEAVE_NPC_OPTS=""
|
WEAVE_NPC_OPTS=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
NO_MASQ_LOCAL_OPT=""
|
NO_MASQ_LOCAL_OPT="--no-masq-local"
|
||||||
if [ -n "${NO_MASQ_LOCAL}" ]; then
|
if [ "${NO_MASQ_LOCAL}" = "0" ]; then
|
||||||
NO_MASQ_LOCAL_OPT="--no-masq-local"
|
NO_MASQ_LOCAL_OPT=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Kubernetes sets HOSTNAME to the host's hostname
|
# Kubernetes sets HOSTNAME to the host's hostname
|
||||||
|
|||||||
Reference in new issue
Block a user