Documentation ¶
Index ¶
Constants ¶
View Source
const ( ServiceSet = "services" SubnetSet = "subnets" SubnetNatSet = "subnets-nat" LocalPodSet = "local-pod-ip-nat" OtherNodeSet = "other-node" IPSetPrefix = "ovn" )
Variables ¶
This section is empty.
Functions ¶
func InitMetrics ¶ added in v1.7.0
func InitMetrics()
func InitMirror ¶ added in v1.7.0
func InitMirror(config *Configuration) error
func InitOVSBridges ¶ added in v1.7.2
InitOVSBridges initializes OVS bridges
func RunServer ¶
func RunServer(config *Configuration, controller *Controller)
RunServer runs the cniserver
Types ¶
type Configuration ¶
type Configuration struct { Iface string MTU int MSS int EnableMirror bool MirrorNic string BindSocket string OvsSocket string KubeConfigFile string KubeClient kubernetes.Interface KubeOvnClient clientset.Interface NodeName string ServiceClusterIPRange string NodeLocalDnsIP string EncapChecksum bool EnablePprof bool MacLearningFallback bool PprofPort int NetworkType string DefaultProviderName string DefaultInterfaceName string ExternalGatewayConfigNS string EnableMetrics bool // contains filtered or unexported fields }
Configuration is the daemon conf
func ParseFlags ¶
func ParseFlags(nicBridgeMappings map[string]string) (*Configuration, error)
ParseFlags will parse cmd args then init kubeClient and configuration TODO: validate configuration
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller watch pod and namespace changes to update iptables, ipset and ovs qos
func NewController ¶
func NewController(config *Configuration, podInformerFactory informers.SharedInformerFactory, nodeInformerFactory informers.SharedInformerFactory, kubeovnInformerFactory kubeovninformer.SharedInformerFactory) (*Controller, error)
NewController init a daemon controller
Click to show internal directories.
Click to hide internal directories.