kubernetes.v0: gopkg.in/kubernetes/kubernetes.v0/pkg/service Index | Files

package service

import "gopkg.in/kubernetes/kubernetes.v0/pkg/service"

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

Package Files

doc.go endpoints_controller.go

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

    // We'll keep pod watches open up to this long. In the unlikely case
    // that a watch misdelivers info about a pod, it'll take this long for
    // that mistake to be rectified.
    PodRelistPeriod = 5 * time.Minute
)

type EndpointController Uses

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

EndpointController manages selector-based service endpoints.

func NewEndpointController Uses

func NewEndpointController(client *client.Client) *EndpointController

NewEndpointController returns a new *EndpointController.

func (*EndpointController) Run Uses

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.

Package service imports 16 packages (graph). Updated 2016-07-25. Refresh now. Tools for package owners.