Documentation
¶
Index ¶
Constants ¶
View Source
const KubeProxyMark string = "0x4000/0x4000"
Variables ¶
View Source
var (
ErrUnimplemented = errors.New("unimplemented")
)
Functions ¶
This section is empty.
Types ¶
type IPTablesRule ¶
type TrafficManager ¶
type TrafficManager interface { // Initialize the TrafficManager, including the go routine to clean-up when flanneld is closed Init(ctx context.Context, wg *sync.WaitGroup) error // Install kernel rules to forward the traffic to and from the flannel network range. // This is done for IPv4 and/or IPv6 based on whether flannelIPv4Network and flannelIPv6Network are set. // SetupAndEnsureForwardRules starts a go routine that // rewrites these rules every resyncPeriod seconds if needed SetupAndEnsureForwardRules(ctx context.Context, flannelIPv4Network ip.IP4Net, flannelIPv6Network ip.IP6Net, resyncPeriod int) // Install kernel rules to setup NATing of packets sent to the flannel interface // This is done for IPv4 and/or IPv6 based on whether flannelIPv4Network and flannelIPv6Network are set. // prevSubnet,prevNetworks, prevIPv6Subnet, prevIPv6Networks are used // to determine whether the existing rules need to be replaced. // SetupAndEnsureMasqRules starts a go routine that // rewrites these rules every resyncPeriod seconds if needed SetupAndEnsureMasqRules(ctx context.Context, flannelIPv4Net, prevSubnet, prevNetwork ip.IP4Net, flannelIPv6Net, prevIPv6Subnet, prevIPv6Network ip.IP6Net, currentlease *lease.Lease, resyncPeriod int) error }
Click to show internal directories.
Click to hide internal directories.