Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
modify launch.sh to launch weaver with --no-masq-local by default
Browse files Browse the repository at this point in the history
  • Loading branch information
murali-reddy committed Feb 27, 2020
1 parent bb51a4f commit 1f0f5ba
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions prog/weave-kube/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1f0f5ba

Please sign in to comment.