Skip to content

Commit

Permalink
enable network policies by default
Browse files Browse the repository at this point in the history
Change-Id: I2a975eae67ebb245ed39befcb95f11fc6a3b94e3
  • Loading branch information
aojea committed Sep 6, 2024
1 parent 5008712 commit f69f8cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kindnetd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f69f8cd

Please sign in to comment.