Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTaskQueue ¶
func NewTaskQueue(syncFn func(string)) *taskQueue
NewTaskQueue creates a new task queue with the given sync function. The sync function is called for every element inserted into the queue.
Types ¶
type IPManager ¶
type IPManager struct { ConfigMapName string // contains filtered or unexported fields }
IPManager is used to track which IPs have been allocated for loadbalancing services
func NewIPManager ¶
func NewIPManager(kubeClient *unversioned.Client, ipCmNamespace, userNamespace, configLabelKey, configLabelValue string) *IPManager
NewIPManager creates an IPManager object that manage IPs allocated to services
func (*IPManager) DeleteVirtualIP ¶
DeleteVirtualIP returns the allocated VIP for the configmap name to the available VIP pool
type LoadBalancerController ¶
type LoadBalancerController struct {
// contains filtered or unexported fields
}
LoadBalancerController watches Kubernetes API for ConfigMap and node changes and reconfigures backend when needed
func NewLoadBalancerController ¶
func NewLoadBalancerController(kubeClient *client.Client, resyncPeriod time.Duration, namespace string, controller backend.BackendController, configMapLabelKey, configMapLabelValue string) (*LoadBalancerController, error)
NewLoadBalancerController creates a controller
func (*LoadBalancerController) Run ¶
func (lbController *LoadBalancerController) Run()
Run starts the configmap controller
type StoreToConfigMapLister ¶
StoreToConfigMapLister makes a Store that lists ConfigMap.
Click to show internal directories.
Click to hide internal directories.