You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ Alternatively you can download the prebuilt binary from https://github.com/cloud
37
37
--run-service-proxy If false, kube-router won't setup IPVS for services proxy. true by default.
38
38
--cleanup-config If true cleanup iptables rules, ipvs, ipset configuration and exit.
39
39
--masquerade-all SNAT all traffic to cluster IP/node port. False by default
40
+
--cluster-cidr CIDR range of pods in the cluster. If specified external traffic from the pods will be masquraded
40
41
--config-sync-period duration How often configuration from the apiserver is refreshed. Must be greater than 0. (default 1m0s)
41
42
--iptables-sync-period duration The maximum interval of how often iptables rules are refreshed (e.g. '5s', '1m'). Must be greater than 0. (default 1m0s)
42
43
--ipvs-sync-period duration The maximum interval of how often ipvs config is refreshed (e.g. '5s', '1m', '2h22m'). Must be greater than 0. (default 1m0s)
Copy file name to clipboardExpand all lines: app/options/options.go
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ type KubeRouterConfig struct {
18
18
RunFirewallbool
19
19
RunRouterbool
20
20
MasqueradeAllbool
21
+
ClusterCIDRstring
21
22
AdvertiseClusterIpbool
22
23
PeerRouterstring
23
24
ClusterAsnstring
@@ -44,6 +45,7 @@ func (s *KubeRouterConfig) AddFlags(fs *pflag.FlagSet) {
44
45
fs.StringVar(&s.Kubeconfig, "kubeconfig", s.Kubeconfig, "Path to kubeconfig file with authorization information (the master location is set by the master flag).")
fs.BoolVar(&s.MasqueradeAll, "masquerade-all", s.MasqueradeAll, "SNAT all traffic to cluster IP/node port. False by default")
48
+
fs.StringVar(&s.ClusterCIDR, "cluster-cidr", s.ClusterCIDR, "CIDR range of pods in the cluster. It is used to identify traffic originating from and destinated to pods.")
47
49
fs.DurationVar(&s.ConfigSyncPeriod, "config-sync-period", s.ConfigSyncPeriod, "How often configuration from the apiserver is refreshed. Must be greater than 0.")
48
50
fs.DurationVar(&s.IPTablesSyncPeriod, "iptables-sync-period", s.IPTablesSyncPeriod, "The maximum interval of how often iptables rules are refreshed (e.g. '5s', '1m'). Must be greater than 0.")
49
51
fs.DurationVar(&s.IpvsSyncPeriod, "ipvs-sync-period", s.IpvsSyncPeriod, "The maximum interval of how often ipvs config is refreshed (e.g. '5s', '1m', '2h22m'). Must be greater than 0.")
0 commit comments