kubernetes: github.com/erimatnor/kubernetes/pkg/cloudprovider/servicecontroller Index | Files

package servicecontroller

import "github.com/erimatnor/kubernetes/pkg/cloudprovider/servicecontroller"

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

Index

Package Files

doc.go servicecontroller.go

type ServiceController Uses

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

func New Uses

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 Uses

func (s *ServiceController) Run(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. 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.

Package servicecontroller imports 15 packages (graph). Updated 2017-05-11. Refresh now. Tools for package owners.