options

package
v1.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 9

Documentation

Index

Constants

View Source
const DEFAULT_BGP_PORT = 179

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeRouterConfig

type KubeRouterConfig struct {
	AdvertiseClusterIp             bool
	AdvertiseExternalIp            bool
	AdvertiseNodePodCidr           bool
	AdvertiseLoadBalancerIp        bool
	BGPGracefulRestart             bool
	BGPGracefulRestartDeferralTime time.Duration
	BGPPort                        uint16
	CacheSyncTimeout               time.Duration
	CleanupConfig                  bool
	ClusterAsn                     uint
	ClusterCIDR                    string
	ClusterIPCIDR                  string
	NodePortRange                  string
	DisableSrcDstCheck             bool
	EnableCNI                      bool
	EnableiBGP                     bool
	EnableOverlay                  bool
	EnablePodEgress                bool
	EnablePprof                    bool
	ExcludedCidrs                  []string
	FullMeshMode                   bool
	OverlayType                    string
	GlobalHairpinMode              bool
	HealthPort                     uint16
	HelpRequested                  bool
	HostnameOverride               string
	IPTablesSyncPeriod             time.Duration
	IpvsSyncPeriod                 time.Duration
	IpvsGracefulPeriod             time.Duration
	IpvsGracefulTermination        bool
	IpvsPermitAll                  bool
	Kubeconfig                     string
	MasqueradeAll                  bool
	Master                         string
	MetricsEnabled                 bool
	MetricsPath                    string
	MetricsPort                    uint16
	NodePortBindOnAllIp            bool
	OverrideNextHop                bool
	PeerASNs                       []uint
	PeerMultihopTtl                uint8
	PeerPasswords                  []string
	PeerPorts                      []uint
	PeerRouters                    []net.IP
	RouterId                       string
	RoutesSyncPeriod               time.Duration
	RunFirewall                    bool
	RunRouter                      bool
	RunServiceProxy                bool
	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