Documentation ¶
Index ¶
- Constants
- func GenKey(ns, name string) string
- func GenSPKey(IPString string, Port uint16, Protocol string) string
- type IPPoolTable
- type LbArgs
- type LbCacheEntry
- type LbCacheKey
- type LbCacheTable
- type LbModelEnt
- type LbServicePairEntry
- type Manager
- func (m *Manager) AddLoxiInstAddr(name string, IP net.IP) error
- func (m *Manager) DeleteAllLoadBalancer()
- func (m *Manager) DeleteLoxiInstAddr(name string) error
- func (m *Manager) DiscoverLoxiLBPeerServices(loxiLBAliveCh chan *api.LoxiClient, loxiLBDeadCh chan struct{}, ...)
- func (m *Manager) DiscoverLoxiLBServices(loxiLBAliveCh chan *api.LoxiClient, loxiLBDeadCh chan struct{}, ...)
- func (m *Manager) Run(stopCh <-chan struct{}, loxiLBLiveCh chan *api.LoxiClient, ...)
- func (m *Manager) SelectLoxiLBRoles(sendSigCh bool, loxiLBSelMasterEvent chan bool)
- type SvcPair
Constants ¶
View Source
const ( LoxiMaxWeight = 10 LoxiMultusServiceAnnotation = "loxilb.io/multus-nets" PoolNameAnnotation = "loxilb.io/poolSelect" SecPoolNameAnnotation = "loxilb.io/poolSelectSecondary" MaxExternalSecondaryIPsNum = 4 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IPPoolTable ¶ added in v0.9.7
type LbCacheEntry ¶
type LbCacheEntry struct { LbMode int Timeout int ActCheck bool PrefLocal bool Addr string State string NodeLabel string ProbeType string ProbePort uint16 ProbeReq string ProbeResp string ProbeTimeo uint32 ProbeRetries int EpSelect api.EpSelect IPPool *ippool.IPPool SIPPools []*ippool.IPPool SecIPs []string LbServicePairs map[string]*LbServicePairEntry }
type LbCacheKey ¶
type LbCacheTable ¶
type LbCacheTable map[string]*LbCacheEntry
type LbModelEnt ¶ added in v0.9.0
type LbModelEnt struct {
LbModel api.LoadBalancerModel
}
type LbServicePairEntry ¶ added in v0.9.1
type Manager ¶
type Manager struct { LoxiClients []*api.LoxiClient LoxiPeerClients []*api.LoxiClient ElectionRunOnce bool // contains filtered or unexported fields }
func NewLoadBalancerManager ¶
func NewLoadBalancerManager( kubeClient clientset.Interface, loxiClients []*api.LoxiClient, loxiPeerClients []*api.LoxiClient, ipPoolTbl map[string]*ippool.IPPool, ip6PoolTbl map[string]*ippool.IPPool, networkConfig *config.NetworkConfig, informerFactory informers.SharedInformerFactory) *Manager
Create and Init Manager. Manager is called by kube-loxilb when k8s service is created & updated.
func (*Manager) AddLoxiInstAddr ¶ added in v0.9.7
func (*Manager) DeleteAllLoadBalancer ¶
func (m *Manager) DeleteAllLoadBalancer()
func (*Manager) DeleteLoxiInstAddr ¶ added in v0.9.7
func (*Manager) DiscoverLoxiLBPeerServices ¶ added in v0.9.1
func (m *Manager) DiscoverLoxiLBPeerServices(loxiLBAliveCh chan *api.LoxiClient, loxiLBDeadCh chan struct{}, loxiLBPurgeCh chan *api.LoxiClient)
func (*Manager) DiscoverLoxiLBServices ¶ added in v0.9.0
func (m *Manager) DiscoverLoxiLBServices(loxiLBAliveCh chan *api.LoxiClient, loxiLBDeadCh chan struct{}, loxiLBPurgeCh chan *api.LoxiClient, excludeList []string)
func (*Manager) Run ¶
func (m *Manager) Run(stopCh <-chan struct{}, loxiLBLiveCh chan *api.LoxiClient, loxiLBPurgeCh chan *api.LoxiClient, masterEventCh <-chan bool)
func (*Manager) SelectLoxiLBRoles ¶ added in v0.9.0
Click to show internal directories.
Click to hide internal directories.