Documentation ¶
Overview ¶
Package network contains code to manipulate Linux network configuration.
Index ¶
- func AddIpsetEntry(l logr.Logger, publicaddr string, ports []corev1.ServicePort) (err error)
- func ConfigureBridge(log logr.Logger, brname string) (*netlink.Bridge, error)
- func DelIpsetEntry(l logr.Logger, publicaddr string, ports []corev1.ServicePort) (err error)
- func GetInterfaceByIP(ip net.IP) (string, error)
- func GetOutboundIP() (net.IP, error)
- func IPTablesCheck(log logr.Logger, brname string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddIpsetEntry ¶
AddIpsetEntry adds the provided address and ports to the appropriate set based on the IP family.
func ConfigureBridge ¶
ConfigureBridge configures the bridge interface used to get packets from the Envoy pods to the customer endpoints. It's called "multus0" by default but that can be overridden in the ServicePrefix CR.
func DelIpsetEntry ¶
DelIpsetEntry deletes the provided address and ports from the appropriate set based on the IP family.
func GetInterfaceByIP ¶
func GetOutboundIP ¶
Get preferred outbound ip of this machine. https://stackoverflow.com/a/37382208/5967960
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.