Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IptablesManager ¶
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.
Click to show internal directories.
Click to hide internal directories.