Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultHealthyServerBindAddress = ":11021" DefaultMetricsServerBindAddress = ":8091" DefaultBGPgRPCServerBindAddress = ":50051" DefaultVxlanUDPPort = 8472 DefaultVlanCheckTimeout = 3 * time.Second DefaultIPtablesCheckDuration = 5 * time.Second DefaultVxlanBaseReachableTime = 5 * time.Second DefaultVxlanExpiredNeighCachesClearInterval = 1 * time.Hour DefaultNeighGCThresh1 = 1024 DefaultNeighGCThresh2 = 2048 DefaultNeighGCThresh3 = 4096 DefaultLocalDirectTableNum = 39999 DefaultToOverlaySubnetTableNum = 40000 DefaultOverlayMarkTableNum = 40001 DefaultIPv6RouteCacheMaxSize = 524288 DefaultIPv6RouteCacheGCThresh = 65536 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { BindSocket string NodeName string VlanMTU int VxlanMTU int BGPMTU int NodeVlanIfName string NodeVxlanIfName string NodeBGPIfName string ExtraNodeLocalVxlanIPCidrs []*net.IPNet HealthyServerAddress string MetricsServerAddress string BGPgRPCServerAddress string VxlanUDPPort int VlanCheckTimeout time.Duration IptablesCheckDuration time.Duration VxlanBaseReachableTime time.Duration VxlanExpiredNeighCachesClearInterval time.Duration VtepAddressCIDRs []*net.IPNet // Use fixed table num to mark "local-pod-direct rule" LocalDirectTableNum int // Use fixed table num to mark "to-overlay-pod-subnet rule" ToOverlaySubnetTableNum int // Use fixed table num to mark "overlay-mark-table rule" OverlayMarkTableNum int NeighGCThresh1 int NeighGCThresh2 int NeighGCThresh3 int IPv6RouteCacheMaxSize int IPv6RouteCacheGCThresh int EnableVlanArpEnhancement bool PatchCalicoPodIPsAnnotation bool CheckPodConnectivityFromHost bool }
Configuration is the daemon conf
func ParseFlags ¶
func ParseFlags() (*Configuration, error)
ParseFlags will parse cmd args then init kubeClient and configuration
Click to show internal directories.
Click to hide internal directories.