daemon

package
v0.0.0-...-ca7731e Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoadbalancerDaemonController

func NewLoadbalancerDaemonController(kubeClient *unversioned.Client, watchNamespace string, conf map[string]string, configLabelKey, configLabelValue string) (backend.BackendController, error)

NewLoadbalancerDaemonController creates a loadbalancer-daemon controller

Types

type LoadbalancerDaemonController

type LoadbalancerDaemonController struct {
	// contains filtered or unexported fields
}

LoadbalancerDaemonController Controller to communicate with loadbalancer-daemon controllers

func (*LoadbalancerDaemonController) GetBindIP

func (lbControl *LoadbalancerDaemonController) GetBindIP(name string) (string, error)

GetBindIP returns the IP used by users to access their apps

func (*LoadbalancerDaemonController) HandleConfigMapCreate

func (lbControl *LoadbalancerDaemonController) HandleConfigMapCreate(configMap *api.ConfigMap) error

HandleConfigMapCreate a new loadbalancer resource

func (*LoadbalancerDaemonController) HandleConfigMapDelete

func (lbControl *LoadbalancerDaemonController) HandleConfigMapDelete(configMap *api.ConfigMap)

HandleConfigMapDelete delete the group from the configmap that represents a loadbalancer

func (*LoadbalancerDaemonController) HandleNodeCreate

func (lbControl *LoadbalancerDaemonController) HandleNodeCreate(node *api.Node)

HandleNodeCreate creates new member for this node in every loadbalancer pool

func (*LoadbalancerDaemonController) HandleNodeDelete

func (lbControl *LoadbalancerDaemonController) HandleNodeDelete(node *api.Node)

HandleNodeDelete deletes member for this node

func (*LoadbalancerDaemonController) HandleNodeUpdate

func (lbControl *LoadbalancerDaemonController) HandleNodeUpdate(oldNode *api.Node, curNode *api.Node)

HandleNodeUpdate update IP of the member for this node if it exists. If it doesnt, it will create a new member

func (*LoadbalancerDaemonController) Name

func (lbControl *LoadbalancerDaemonController) Name() string

Name returns the name of the backend controller

Jump to

Keyboard shortcuts

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