Documentation ¶
Overview ¶
Package agent contains the libraries that drive the antrea-agent binary. antrea-agent is responsible for the Pod networking and policy implementation on a Kubernetes Node.
Index ¶
Constants ¶
View Source
const ( TunPortName = "tun0" NodeNameEnvKey = "NODE_NAME" IPSecPSKEnvKey = "ANTREA_IPSEC_PSK" )
Variables ¶
This section is empty.
Functions ¶
func CreateAntreaClient ¶
func CreateAntreaClient(config config.ClientConnectionConfiguration) (versioned.Interface, error)
CreateAntreaClient creates an Antrea client from the given config.
Types ¶
type Initializer ¶
type Initializer struct {
// contains filtered or unexported fields
}
Initializer knows how to setup host networking, OpenVSwitch, and Openflow.
func NewInitializer ¶
func NewInitializer( ovsBridgeClient ovsconfig.OVSBridgeClient, ofClient openflow.Client, k8sClient clientset.Interface, ifaceStore interfacestore.InterfaceStore, ovsBridge, serviceCIDR, hostGateway string, mtu int, tunnelType ovsconfig.TunnelType, enableIPSecTunnel bool) *Initializer
func (*Initializer) GetIPSecPSK ¶
func (i *Initializer) GetIPSecPSK() string
GetIPSecPSK returns PSK used for IPSec tunnel.
func (*Initializer) GetNodeConfig ¶
func (i *Initializer) GetNodeConfig() *types.NodeConfig
GetNodeConfig returns the NodeConfig.
func (*Initializer) Initialize ¶
func (i *Initializer) Initialize() error
Directories ¶
Path | Synopsis |
---|---|
ipam/testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
controller
|
|
testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
ethtool
Package ethtool provides Go wrappers for ioctl ethtool system calls on Linux
|
Package ethtool provides Go wrappers for ioctl ethtool system calls on Linux |
Click to show internal directories.
Click to hide internal directories.