kubernetesk8s.io/kubernetes/pkg/controller/endpoint Index | Files

package endpointcontroller

import "k8s.io/kubernetes/pkg/controller/endpoint"

Package service provides EndpointController implementation to manage and sync service endpoints.

CAUTION: If you update code in this file, you may need to also update code

in contrib/mesos/pkg/service/endpoints_controller.go

Index

Constants

const (
	// We'll attempt to recompute EVERY service's endpoints at least this
	// often. Higher numbers = lower CPU/network load; lower numbers =
	// shorter amount of time before a mistaken endpoint is corrected.
	FullServiceResyncPeriod = 30 * time.Second
)

Types

type EndpointController

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

EndpointController manages selector-based service endpoints.

func NewEndpointController

func NewEndpointController(client *client.Client, resyncPeriod controller.ResyncPeriodFunc) *EndpointController

NewEndpointController returns a new *EndpointController.

func (*EndpointController) Run

func (e *EndpointController) Run(workers int, stopCh <-chan struct{})

Runs e; will not return until stopCh is closed. workers determines how many endpoints will be handled in parallel.

Source Files

doc.go endpoints_controller.go

Version
v1.1.4-beta.0
Published
Dec 7, 2015
Platform
linux/amd64
Imports
18 packages
Last checked
1 minute ago

Tools for package owners.