servicecontroller

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2015 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package servicecontroller contains code for syncing cloud load balancers with the service registry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceController

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

func New

func New(cloud cloudprovider.Interface, kubeClient client.Interface, clusterName string) *ServiceController

New returns a new service controller to keep cloud provider service resources (like external load balancers) in sync with the registry.

func (*ServiceController) Run

func (s *ServiceController) Run(serviceSyncPeriod, nodeSyncPeriod time.Duration) error

Run starts a background goroutine that watches for changes to services that have (or had) externalLoadBalancers=true and ensures that they have external load balancers created and deleted appropriately. serviceSyncPeriod controls how often we check the cluster's services to ensure that the correct external load balancers exist. nodeSyncPeriod controls how often we check the cluster's nodes to determine if external load balancers need to be updated to point to a new set.

It's an error to call Run() more than once for a given ServiceController object.

Jump to

Keyboard shortcuts

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