network

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package network contains code to manipulate Linux network configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIpsetEntry

func AddIpsetEntry(l logr.Logger, publicaddr string, ports []corev1.ServicePort) (err error)

AddIpsetEntry adds the provided address and ports to the appropriate set based on the IP family.

func ConfigureBridge

func ConfigureBridge(log logr.Logger, brname string) (*netlink.Bridge, error)

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

func DelIpsetEntry(l logr.Logger, publicaddr string, ports []corev1.ServicePort) (err error)

DelIpsetEntry deletes the provided address and ports from the appropriate set based on the IP family.

func GetOutboundIP

func GetOutboundIP() (net.IP, error)

Get preferred outbound ip of this machine. https://stackoverflow.com/a/37382208/5967960

func IPTablesCheck

func IPTablesCheck(log logr.Logger, brname string) error

IPTablesCheck sets up the iptables rules.

Types

This section is empty.

Jump to

Keyboard shortcuts

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