From f69f8cd101eefe0ef542b81277574bd8e86f518c Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Thu, 5 Sep 2024 22:11:59 +0000 Subject: [PATCH] enable network policies by default Change-Id: I2a975eae67ebb245ed39befcb95f11fc6a3b94e3 --- cmd/kindnetd/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/kindnetd/main.go b/cmd/kindnetd/main.go index 29b8011..e0c9673 100644 --- a/cmd/kindnetd/main.go +++ b/cmd/kindnetd/main.go @@ -71,9 +71,9 @@ var ( func init() { flag.BoolVar(&useBridge, "cni-bridge", false, "If set, enable the CNI bridge plugin (default is the ptp plugin)") - flag.BoolVar(&networkpolicies, "network-policy", false, "If set, enable Network Policies") + flag.BoolVar(&networkpolicies, "network-policy", true, "If set, enable Network Policies (default true)") flag.StringVar(&hostnameOverride, "hostname-override", "", "If non-empty, will be used as the name of the Node that kube-network-policies is running on. If unset, the node name is assumed to be the same as the node's hostname.") - flag.BoolVar(&masquerading, "masquerading", true, "masquerade with the Node IP the cluster to external traffic") + flag.BoolVar(&masquerading, "masquerading", true, "masquerade with the Node IP the cluster to external traffic (default true)") flag.StringVar(&noMasqueradeCIDRs, "no-masquerade-cidr", "", "Comma seperated list of CIDRs that will not be masqueraded.") flag.Usage = func() {