ipvs

package
v0.0.0-...-ef46652 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TODO: This is configurable :)
	DefaultAlgo   = "rr"
	DefaultWeight = 1
)

Variables

View Source
var (
	OnlyOutput       = flag.Bool("only-output", false, "Only output the ipvsadm-restore file instead of calling ipvsadm-restore")
	IPVSAdmPath      = flag.String("ipvsadm", "/usr/sbin/ipvsadm", "Defines the path of ipvsadm-restore command")
	NodeAddress      = flag.StringSlice("nodeport-address", interfaceAddresses(), "A comma-separated list of IPs to associate when using NodePort type. Defaults to all the Node addresses")
	IPVSExcludeCIDRS = flag.StringSlice("ipvs-exclude-cidrs", nil, "A comma-separated list of CIDR's which the ipvs proxier should not touch when cleaning up IPVS rules.")
	IPVSStrictArp    = flag.Bool("ipvs-strict-arp", false, "Enable strict ARP by setting arp_ignore to 1 and arp_announce to 2")
)

Functions

func BindFlags

func BindFlags(flags *pflag.FlagSet)

func Callback

func Callback(ch <-chan *client.ServiceEndpoints)

func NewDummyInterface

func NewDummyInterface(dummyInterface string) error

func PreRun

func PreRun() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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