Documentation
¶
Index ¶
- Constants
- type Manager
- func (mgr *Manager) RecordLocalNodeIP(nodeIP net.IP)
- func (mgr *Manager) RecordLocalPodIP(podIP net.IP)
- func (mgr *Manager) RecordNodeIP(nodeIP net.IP)
- func (mgr *Manager) RecordRemoteNodeIP(nodeIP net.IP)
- func (mgr *Manager) RecordRemoteSubnet(subnetCidr *net.IPNet, isOverlay bool)
- func (mgr *Manager) RecordSubnet(subnetCidr *net.IPNet, isOverlay, isLocal bool)
- func (mgr *Manager) RecordVlanForwardIfName(vlanForwardIfName string)
- func (mgr *Manager) Reset()
- func (mgr *Manager) SetBgpIfName(bgpIfName string)
- func (mgr *Manager) SetOverlayIfName(overlayIfName string)
- func (mgr *Manager) SyncRules() error
- type Protocol
Constants ¶
View Source
const ( ChainRamaPostRouting = "RAMA-POSTROUTING" ChainRamaForward = "RAMA-FORWARD" ChainRamaPreRouting = "RAMA-PREROUTING" )
View Source
const ( TableNAT = "nat" TableFilter = "filter" TableMangle = "mangle" ChainPostRouting = "POSTROUTING" ChainPreRouting = "PREROUTING" ChainForward = "FORWARD" CustomChainPrefix = "HYBRIDNET-" ChainHybridnetPostRouting = CustomChainPrefix + "POSTROUTING" ChainHybridnetForward = CustomChainPrefix + "FORWARD" ChainHybridnetPreRouting = CustomChainPrefix + "PREROUTING" ChainHybridnetFromRuleSkip = CustomChainPrefix + "FROM-RULE-SKIP" ChainHybridnetPodToNodeTrafficMark = CustomChainPrefix + "POD-TO-NODE-MARK" HybridnetOverlayNetSetName = "HYBR-OVERLAY-NET" HybridnetAllIPSetName = "HYBR-ALL" HybridnetNodeIPSetName = "HYBR-NODE-IP" HybridnetLocalPodIPSetName = "HYBR-LOCAL-POD-IP" HybridnetLocalUnderlayNetSetName = "HYBR-LOCAL-UNDERLAY-NET" PodToNodeBackTrafficMarkString = "0x20" FullNATedPodTrafficMarkString = "0x40" PodToNodeBackTrafficMark = 0x20 FullNATedPodTrafficMark = 0x40 KubeProxyMasqueradeMark = 0x4000 KubeProxyMasqueradeMarkString = "0x4000" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func CreateIPtablesManager ¶
func (*Manager) RecordLocalNodeIP ¶ added in v0.7.6
func (*Manager) RecordLocalPodIP ¶ added in v0.4.0
func (*Manager) RecordNodeIP ¶
func (*Manager) RecordRemoteNodeIP ¶ added in v0.3.0
func (*Manager) RecordRemoteSubnet ¶ added in v0.3.0
func (*Manager) RecordSubnet ¶
func (*Manager) RecordVlanForwardIfName ¶ added in v0.8.1
func (*Manager) SetBgpIfName ¶ added in v0.4.0
func (*Manager) SetOverlayIfName ¶
Click to show internal directories.
Click to hide internal directories.