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 ¶
- func GetTransportIPNetDeviceByName(ifaceName string, ovsBridgeName string) (*net.IPNet, *net.IPNet, *net.Interface, error)
- func NewAntreaClientProvider(config config.ClientConnectionConfiguration, kubeClient kubernetes.Interface) *antreaClientProvider
- type AntreaClientProvider
- type Initializer
- func (i *Initializer) ConnectUplinkToOVSBridge() error
- func (i *Initializer) FlowRestoreComplete() error
- func (i *Initializer) GetNodeConfig() *config.NodeConfig
- func (i *Initializer) GetWireGuardClient() wireguard.Interface
- func (i *Initializer) Initialize() error
- func (i *Initializer) RestoreOVSBridge()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTransportIPNetDeviceByName ¶ added in v1.3.0
func NewAntreaClientProvider ¶
func NewAntreaClientProvider(config config.ClientConnectionConfiguration, kubeClient kubernetes.Interface) *antreaClientProvider
Types ¶
type AntreaClientProvider ¶
AntreaClientProvider provides a method to get Antrea client.
type Initializer ¶
type Initializer struct {
// contains filtered or unexported fields
}
Initializer knows how to setup host networking, OpenVSwitch, and Openflow.
func NewInitializer ¶
func NewInitializer( k8sClient clientset.Interface, crdClient versioned.Interface, ovsBridgeClient ovsconfig.OVSBridgeClient, ovsCtlClient ovsctl.OVSCtlClient, ofClient openflow.Client, routeClient route.Interface, ifaceStore interfacestore.InterfaceStore, ovsBridge string, hostGateway string, mtu int, networkConfig *config.NetworkConfig, wireGuardConfig *config.WireGuardConfig, egressConfig *config.EgressConfig, serviceConfig *config.ServiceConfig, podNetworkWait *utilwait.Group, stopCh <-chan struct{}, nodeType config.NodeType, externalNodeNamespace string, connectUplinkToBridge bool, enableL7NetworkPolicy bool, ) *Initializer
func (*Initializer) ConnectUplinkToOVSBridge ¶ added in v1.6.0
func (i *Initializer) ConnectUplinkToOVSBridge() error
func (*Initializer) FlowRestoreComplete ¶
func (i *Initializer) FlowRestoreComplete() error
func (*Initializer) GetNodeConfig ¶
func (i *Initializer) GetNodeConfig() *config.NodeConfig
GetNodeConfig returns the NodeConfig.
func (*Initializer) GetWireGuardClient ¶ added in v1.3.0
func (i *Initializer) GetWireGuardClient() wireguard.Interface
GetWireGuardClient returns the Wireguard client.
func (*Initializer) Initialize ¶
func (i *Initializer) Initialize() error
Initialize sets up agent initial configurations.
func (*Initializer) RestoreOVSBridge ¶ added in v1.4.0
func (i *Initializer) RestoreOVSBridge()
RestoreOVSBridge returns immediately on Linux if connectUplinkToBridge is false. OVS is managed by Antrea in Linux, network config must be restored to uplink before Antrea Agent shutdown.
Directories ¶
Path | Synopsis |
---|---|
ipam/testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
Package consistenthash provides an implementation of a ring hash.
|
Package consistenthash provides an implementation of a ring hash. |
controller
|
|
connections/testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
nolint: unused // a lot of this code is unused for Windows since the multicast feature is not implemented yet
|
nolint: unused // a lot of this code is unused for Windows since the multicast feature is not implemented yet |
testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
portcache
portcache maintains the state about all current NodePortLocal port mappings for this Node and takes care of configuring the host accordingly.
|
portcache maintains the state about all current NodePortLocal port mappings for this Node and takes care of configuring the host accordingly. |
portcache/testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
rules/testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
cookie
Package cookie implements a cookie allocator.
|
Package cookie implements a cookie allocator. |
testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
secondarynetwork
|
|
ipam/testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
podwatch/testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
Package util contains utility functions which are used in the agent implementation.
|
Package util contains utility functions which are used in the agent implementation. |
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 |
ipset/testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
iptables/testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
ndp
Package ndp contains functions to send NDP neighbor advertisement on Linux.
|
Package ndp contains functions to send NDP neighbor advertisement on Linux. |
netlink/testing
Package testing is a generated GoMock package.
|
Package testing is a generated GoMock package. |
sysctl
Package systcl contains utility functions to read and write sysctl configuration on Linux.
|
Package systcl contains utility functions to read and write sysctl configuration on Linux. |
winfirewall
Package winfirewall contains utility functions to configure the Windows firewall.
|
Package winfirewall contains utility functions to configure the Windows firewall. |
Click to show internal directories.
Click to hide internal directories.