iptables

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IptablesManager

type IptablesManager interface {
	Run(stopCh <-chan struct{}, wg *sync.WaitGroup)
}

IptableManager interface defines the method for adding dnat rules to host that needs to send network packages to kubelets

func NewIptablesManager

func NewIptablesManager(client clientset.Interface,
	nodeInformer coreinformer.NodeInformer,
	listenAddr string,
	listenInsecureAddr string,
	syncPeriod int) IptablesManager

NewIptablesManager creates an IptablesManager; deletes old chains, if any; generates new dnat rules based on IPs of current active nodes; and appends the rules to the iptable.

Jump to

Keyboard shortcuts

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