package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev

# Packages

Package config provides decoupling between various configuration sources (etcd, files,...) and the pieces that actually care about them (loadbalancer, proxy).
Package healthcheck provides tools for serving kube-proxy healthchecks.
Package winkernel implements the Windows-kernel-based proxy.

# Functions

CategorizeEndpoints returns: - The service's usable Cluster-traffic-policy endpoints (taking topology into account, if relevant).
NewEndpointsChangeTracker initializes an EndpointsChangeTracker.
NewEndpointSliceCache initializes an EndpointSliceCache.
NewServiceChangeTracker initializes a ServiceChangeTracker.

# Structs

BaseEndpointInfo contains base information that defines an endpoint.
BaseServicePortInfo contains base information that defines a service.
EndpointsChangeTracker carries state about uncommitted changes to an arbitrary number of Endpoints, keyed by their namespace and name.
EndpointSliceCache is used as a cache of EndpointSlice information.
NodeEligibleHandler handles the life cycle of the Node's eligibility, as determined by the health server for directing load balancer traffic.
NodePodCIDRHandler handles the life cycle of kube-proxy based on the node PodCIDR assigned Implements the config.NodeHandler interface https://issues.k8s.io/111321.
ServiceChangeTracker carries state about uncommitted changes to an arbitrary number of Services, keyed by their namespace and name.
ServiceEndpoint is used to identify a service and one of its endpoint pair.
ServicePortName carries a namespace + name + portname.
UpdateEndpointsMapResult is the updated results after applying endpoints changes.
UpdateServiceMapResult is the updated results after applying service changes.

# Interfaces

Endpoint in an interface which abstracts information about an endpoint.
Provider is the interface provided by proxier implementations.
ServicePort is an interface which abstracts information about a service.

# Type aliases

EndpointsMap maps a service name to a list of all its Endpoints.
ServicePortMap maps a service to its ServicePort.