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

package endpoint

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

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

Index

Constants

const (

	// LabelManagedBy is a label for recognizing Endpoints managed by this controller.
	LabelManagedBy = "endpoints.kubernetes.io/managed-by"

	// ControllerName is the name of this controller
	ControllerName = "endpoint-controller"
)

Types

type Controller

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

Controller manages selector-based service endpoints.

func NewEndpointController

func NewEndpointController(ctx context.Context, podInformer coreinformers.PodInformer, serviceInformer coreinformers.ServiceInformer,
	endpointsInformer coreinformers.EndpointsInformer, client clientset.Interface, endpointUpdatesBatchPeriod time.Duration) *Controller

NewEndpointController returns a new *Controller.

func (*Controller) Run

func (e *Controller) Run(ctx context.Context, workers int)

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

Source Files

doc.go endpoints_controller.go endpoints_tracker.go

Directories

PathSynopsis
pkg/controller/endpoint/config
pkg/controller/endpoint/config/v1alpha1
Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
31 packages
Last checked
3 hours ago

Tools for package owners.