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
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,10 @@ Alternatively you can download the prebuilt binary from https://github.com/cloud
43
43
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag).
44
44
--master string The address of the Kubernetes API server (overrides any value in kubeconfig)
45
45
--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)
46
+
--advertise-cluster-ip If true then cluster IP will be added into the RIB and will be advertised to the peers. False by default.
47
+
--cluster-asn ASN number under which cluster nodes will run iBGP
48
+
--peer-asn ASN number of the BGP peer to which cluster nodes will advertise cluster ip and node's pod cidr
49
+
--peer-router The ip address of the external router to which all nodes will peer and advertise the cluster ip and pod cidr's
@@ -43,4 +48,8 @@ func (s *KubeRouterConfig) AddFlags(fs *pflag.FlagSet) {
43
48
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.")
44
49
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.")
45
50
fs.DurationVar(&s.RoutesSyncPeriod, "routes-sync-period", s.RoutesSyncPeriod, "The maximum interval of how often routes are adrvertised and learned (e.g. '5s', '1m', '2h22m'). Must be greater than 0.")
51
+
fs.BoolVar(&s.AdvertiseClusterIp, "advertise-cluster-ip", s.AdvertiseClusterIp, "If true then cluster IP will be added into the RIB and will be advertised to the peers. False by default.")
52
+
fs.StringVar(&s.PeerRouter, "peer-router", s.PeerRouter, "The ip address of the external router to which all nodes will peer and advertise the cluster ip and pod cidr's")
53
+
fs.StringVar(&s.ClusterAsn, "cluster-asn", s.ClusterAsn, "ASN number under which cluster nodes will run iBGP")
54
+
fs.StringVar(&s.PeerAsn, "peer-asn", s.PeerAsn, "ASN number of the BGP peer to which cluster nodes will advertise cluster ip and node's pod cidr")
0 commit comments