Documentation ¶
Index ¶
- func NewF5Controller(kubeClient *unversioned.Client, watchNamespace string, conf map[string]string, ...) (backend.BackendController, error)
- type F5Controller
- func (ctr *F5Controller) GetBindIP(name string) (string, error)
- func (ctr *F5Controller) HandleConfigMapCreate(configMap *api.ConfigMap) error
- func (ctr *F5Controller) HandleConfigMapDelete(configMap *api.ConfigMap)
- func (ctr *F5Controller) HandleNodeCreate(node *api.Node)
- func (ctr *F5Controller) HandleNodeDelete(node *api.Node)
- func (ctr *F5Controller) HandleNodeUpdate(oldNode *api.Node, curNode *api.Node)
- func (ctr *F5Controller) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewF5Controller ¶
func NewF5Controller(kubeClient *unversioned.Client, watchNamespace string, conf map[string]string, configLabelKey, configLabelValue string) (backend.BackendController, error)
NewF5Controller creates a F5 controller
Types ¶
type F5Controller ¶
type F5Controller struct {
// contains filtered or unexported fields
}
F5Controller Controller to communicate with F5
func (*F5Controller) GetBindIP ¶
func (ctr *F5Controller) GetBindIP(name string) (string, error)
GetBindIP returns the IP used by users to access their apps
func (*F5Controller) HandleConfigMapCreate ¶
func (ctr *F5Controller) HandleConfigMapCreate(configMap *api.ConfigMap) error
HandleConfigMapCreate creates a new F5 pool, nodes, monitor and virtual server to provide loadbalancing to the app defined in the configmap
func (*F5Controller) HandleConfigMapDelete ¶
func (ctr *F5Controller) HandleConfigMapDelete(configMap *api.ConfigMap)
HandleConfigMapDelete delete all the resources created in F5 for load balancing an app
func (*F5Controller) HandleNodeCreate ¶
func (ctr *F5Controller) HandleNodeCreate(node *api.Node)
HandleNodeCreate creates new member for this node in every pool
func (*F5Controller) HandleNodeDelete ¶
func (ctr *F5Controller) HandleNodeDelete(node *api.Node)
HandleNodeDelete deletes member for this node
func (*F5Controller) HandleNodeUpdate ¶
func (ctr *F5Controller) HandleNodeUpdate(oldNode *api.Node, curNode *api.Node)
HandleNodeUpdate updates IP of the member for this node if it exists. If it doesnt, it will create a new member
func (*F5Controller) Name ¶
func (ctr *F5Controller) Name() string
Name returns the name of the backend controller
Click to show internal directories.
Click to hide internal directories.