options

package
v2.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

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
	ClusterIPCIDRs                 []string
	DisableSrcDstCheck             bool
	EnableCNI                      bool
	EnableiBGP                     bool
	EnableIPv4                     bool
	EnableIPv6                     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
	LoadBalancerCIDRs              []string
	LoadBalancerDefaultClass       bool
	LoadBalancerSyncPeriod         time.Duration
	MasqueradeAll                  bool
	Master                         string
	MetricsEnabled                 bool
	MetricsPath                    string
	MetricsPort                    uint16
	MetricsAddr                    string
	NodePortBindOnAllIP            bool
	NodePortRange                  string
	OverlayType                    string
	OverlayEncap                   string
	OverlayEncapPort               uint16
	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
	RunLoadBalancer                bool
	RuntimeEndpoint                string
	ServiceTCPTimeout              time.Duration
	ServiceTCPFinTimeout           time.Duration
	ServiceUDPTimeout              time.Duration
	Version                        bool
	VLevel                         string
}

func NewKubeRouterConfig

func NewKubeRouterConfig() *KubeRouterConfig

func (*KubeRouterConfig) AddFlags

func (s *KubeRouterConfig) AddFlags(fs *pflag.FlagSet)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL