nodeportlocal

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeNPLAgent

func InitializeNPLAgent(
	kubeClient clientset.Interface,
	serviceInformer coreinformers.ServiceInformer,
	podInformer cache.SharedIndexInformer,
	startPort int,
	endPort int,
	nodeName string,
) (*nplk8s.NPLController, error)

InitializeNPLAgent initializes the NodePortLocal agent. It sets up event handlers to handle Pod add, update and delete events. When a Pod gets created, a free Node port is obtained from the port table cache and a DNAT rule is added to NAT traffic to the Pod's ip:port.

Types

This section is empty.

Directories

Path Synopsis
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.
testing
Code generated by MockGen.
Code generated by MockGen.
testing
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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