{"modulePath":"github.com/dockerstack/kubernetes","version":"v0.20.1-0.20150627061651-1c0b765df6da","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package servicecontroller\n\nPackage servicecontroller contains code for syncing cloud load balancers with the service registry.\n\n## Types\n\n```go\ntype ServiceController struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(cloud cloudprovider.Interface, kubeClient client.Interface, clusterName string) *ServiceController\n```\nNew returns a new service controller to keep cloud provider service resources (like external load balancers) in sync with the registry.\n\n```go\nfunc (s *ServiceController) Run(nodeSyncPeriod time.Duration) error\n```\nRun 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.\n\n","path":"github.com/dockerstack/kubernetes/pkg/cloudprovider/servicecontroller","name":"servicecontroller","synopsis":"Package servicecontroller contains code for syncing cloud load balancers with the service registry.","isRedistributable":true}
