Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultBgpPort = 179 DefaultBgpHoldTime = 90 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeRouterConfig ¶
type KubeRouterConfig struct { AdvertiseClusterIP bool AdvertiseExternalIP bool AdvertiseLoadBalancerIP bool AdvertiseNodePodCidr bool AutoMTU bool BGPGracefulRestart bool BGPGracefulRestartDeferralTime time.Duration BGPGracefulRestartTime time.Duration BGPHoldTime time.Duration BGPPort uint32 CacheSyncTimeout time.Duration CleanupConfig bool ClusterAsn uint ClusterIPCIDR string DisableSrcDstCheck bool EnableCNI bool EnableiBGP bool EnableOverlay bool EnablePodEgress bool EnablePprof bool ExcludedCidrs []string ExternalIPCIDRs []string FullMeshMode bool GlobalHairpinMode bool HealthPort uint16 HelpRequested bool HostnameOverride string InjectedRoutesSyncPeriod time.Duration IPTablesSyncPeriod time.Duration IpvsGracefulPeriod time.Duration IpvsGracefulTermination bool IpvsPermitAll bool IpvsSyncPeriod time.Duration Kubeconfig string MasqueradeAll bool Master string MetricsEnabled bool MetricsPath string MetricsPort uint16 NodePortBindOnAllIP bool NodePortRange string OverlayType string OverrideNextHop bool PeerASNs []uint PeerMultihopTTL uint8 PeerPasswords []string PeerPasswordsFile string PeerPorts []uint PeerRouters []net.IP RouterID string RoutesSyncPeriod time.Duration RunFirewall bool RunRouter bool RunServiceProxy bool RuntimeEndpoint string Version bool VLevel string }
func NewKubeRouterConfig ¶
func NewKubeRouterConfig() *KubeRouterConfig
func (*KubeRouterConfig) AddFlags ¶
func (s *KubeRouterConfig) AddFlags(fs *pflag.FlagSet)
Click to show internal directories.
Click to hide internal directories.