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
* Enable pod egress masquerading by default
- Adds flag "--enable-pod-egress" (default: true)
- Removes previously created iptables rule if option is changed to false
* Use an ipset to match Pod egress traffic to be masqueraded
* Set --cluster-cidr as depreciated flag
If set to anything, normal dynamic Pod egress masquerading is turned on.
* Use Replace else Add logic for updating export policy
Fixes errors logged due to existing statement in poliy.
Copy file name to clipboardExpand all lines: Documentation/README.md
+21-19Lines changed: 21 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,25 +69,27 @@ Also you can choose to run kube-router as agent running on each cluster node. Al
69
69
### command line options
70
70
71
71
```
72
-
--run-firewall If false, kube-router won't setup iptables to provide ingress firewall for pods. true by default.
73
-
--run-router If true each node advertise routes the rest of the nodes and learn the routes for the pods. false by default
74
-
--run-service-proxy If false, kube-router won't setup IPVS for services proxy. true by default.
75
-
--cleanup-config If true cleanup iptables rules, ipvs, ipset configuration and exit.
76
-
--masquerade-all SNAT all traffic to cluster IP/node port. False by default
77
-
--cluster-cidr CIDR range of pods in the cluster. If specified external traffic from the pods will be masquraded
78
-
--config-sync-period duration How often configuration from the apiserver is refreshed. Must be greater than 0. (default 1m0s)
79
-
--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)
80
-
--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)
81
-
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
82
-
--master string The address of the Kubernetes API server (overrides any value in kubeconfig)
83
-
--routes-sync-period duration The maximum interval of how often routes are advertised and learned (e.g. '5s', '1m', '2h22m'). Must be greater than 0. (default 1m0s)
84
-
--advertise-cluster-ip If true then cluster IP will be added into the RIB and will be advertised to the peers. False by default.
85
-
--cluster-asn ASN number under which cluster nodes will run iBGP
86
-
--peer-asn ASN number of the BGP peer to which cluster nodes will advertise cluster ip and node's pod cidr
87
-
--peer-router The ip address of the external router to which all nodes will peer and advertise the cluster ip and pod cidr's
88
-
--nodes-full-mesh When enabled each node in the cluster will setup BGP peer with rest of the nodes. True by default
89
-
--hostname-override If non-empty, this string will be used as identification of node name instead of the actual hostname.
90
-
--hairpin-mode Adds iptable rules for every ClusterIP Service Endpoint to support hairpin traffic. False by default
72
+
Usage of ./kube-router:
73
+
--advertise-cluster-ip Add Cluster IP to the RIB and advertise to peers.
74
+
--cleanup-config Cleanup iptables rules, ipvs, ipset configuration and exit.
75
+
--cluster-asn string ASN number under which cluster nodes will run iBGP.
76
+
--config-sync-period duration The delay between apiserver configuration synchronizations (e.g. '5s', '1m'). Must be greater than 0. (default 1m0s)
77
+
--enable-pod-egress SNAT traffic from Pods to destinations outside the cluster. (default true)
78
+
--hairpin-mode Add iptable rules for every Service Endpoint to support hairpin traffic.
79
+
-h, --help Print usage information.
80
+
--hostname-override string Overrides the NodeName of the node. Set this if kube-router is unable to determine your NodeName automatically.
81
+
--iptables-sync-period duration The delay between iptables rule synchronizations (e.g. '5s', '1m'). Must be greater than 0. (default 1m0s)
82
+
--ipvs-sync-period duration The delay between ipvs config synchronizations (e.g. '5s', '1m', '2h22m'). Must be greater than 0. (default 1m0s)
83
+
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
84
+
--masquerade-all SNAT all traffic to cluster IP/node port.
85
+
--master string The address of the Kubernetes API server (overrides any value in kubeconfig).
86
+
--nodes-full-mesh Each node in the cluster will setup BGP peering with rest of the nodes. (default true)
87
+
--peer-asn string ASN number of the BGP peer to which cluster nodes will advertise cluster ip and node's pod cidr.
88
+
--peer-router string The ip address of the external router to which all nodes will peer and advertise the cluster ip and pod cidr's.
89
+
--routes-sync-period duration The delay between route updates and advertisements (e.g. '5s', '1m', '2h22m'). Must be greater than 0. (default 1m0s)
90
+
--run-firewall Enables Network Policy -- sets up iptables to provide ingress firewall for pods. (default true)
91
+
--run-router Enables Pod Networking -- Advertises and learns the routes to Pods via iBGP. (default true)
92
+
--run-service-proxy Enables Service Proxy -- sets up IPVS for Kubernetes Services. (default true)
0 commit comments