ipfailover

package
v4.0.0-0.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultName is the default IP Failover resource name.
	DefaultName = "ipfailover"

	// DefaultType is the default IP Failover type.
	DefaultType = "keepalived"

	// DefaultServicePort is the port associated with the ipfailover config.
	// Each ipfailover config has a different ServicePort.
	DefaultServicePort = 63000

	// DefaultWatchPort is the default IP Failover watched port number.
	DefaultWatchPort = 80

	// DefaultSelector is the default resource selector.
	DefaultSelector = "ipfailover=<name>"

	// DefaultCheckInterval is the default default interval in seconds
	// between calls to the CheckScript
	DefaultCheckInterval = 2

	// DefaultPreemption strategy determines what to do when a lower
	// priority machine has MASTER and a higher priority machine becomes
	// available. The choices are "nopreempt" which leaves the lower priority
	// machine as MASTER and "preempt_delay 300" (the default) which allows the
	// supplied number of seconds to settle and then switches to the higher
	// priority machine.
	DefaultPreemption = "preempt_delay 300"

	// DefaultIptablesChain is the default iptables chain on which to add
	// a rule that accesses 224.0.0.18 (if none exists).
	DefaultIptablesChain = "INPUT"

	// DefaultInterface is the default network interface.
	DefaultInterface = "eth0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IPFailoverConfigOptions

type IPFailoverConfigOptions struct {
	Type           string
	ImageTemplate  variable.ImageTemplate
	ServicePort    int
	Selector       string
	Create         bool
	ServiceAccount string

	ConfiguratorPlugin IPFailoverConfiguratorPlugin

	VirtualIPs       string
	VIPGroups        uint
	IptablesChain    string
	NotifyScript     string
	CheckScript      string
	CheckInterval    int
	Preemption       string
	NetworkInterface string
	WatchPort        int
	VRRPIDOffset     int
	Replicas         int32
}

IPFailoverConfigOptions are options supported by the IP Failover admin command.

func NewIPFailoverConfigOptions

func NewIPFailoverConfigOptions() *IPFailoverConfigOptions

type IPFailoverConfiguratorPlugin

type IPFailoverConfiguratorPlugin interface {
	Generate() ([]runtime.Object, error)
}

Jump to

Keyboard shortcuts

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