Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindContainerPort ¶
func FindContainerPort(pod *api.Pod, svcPort *api.ServicePort) int
FindContainerPort Find the container's port number of a known servicePort Search criteria: 1. svcPort.TargetPort is a number: this is the right container's port 2. svcPort.TargetPort is a named port (not a number): find a container's port with that name and use its ContainerPort If targetPort is neither a valid port number nor a declared named port, return zero which means that the port was not found
func FindServicePort ¶
func FindServicePort(svc *api.Service, servicePort string) *api.ServicePort
FindServicePort ...
func RebalanceWeight ¶ added in v0.13.0
func RebalanceWeight(clusters []*WeightCluster, initialWeight int)
RebalanceWeight ...
Types ¶
type Endpoint ¶
Endpoint ...
func CreateEndpoints ¶
func CreateEndpoints(cache types.Cache, svc *api.Service, svcPort *api.ServicePort, useEndpointSlices bool) (ready, notReady []*Endpoint, err error)
CreateEndpoints ...
func CreateSvcEndpoint ¶
CreateSvcEndpoint ...
type WeightCluster ¶ added in v0.13.0
WeightCluster ...
Click to show internal directories.
Click to hide internal directories.