backend

package
v1.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AnyLBTGReadyConditionType = api.PodConditionType("target-health.alb.ingress.k8s.aws/load-balancer-any-tg-ready")

a special readiness condition type that will mark pod as ready if any targetGroup have the pod as healthy. This is added to temporarily support Ingress/Backend with long names Please don't use this if your pod will be registered in multiple targetGroups. See https://github.com/kubernetes-sigs/aws-alb-ingress-controller/pull/1253

Variables

This section is empty.

Functions

func IsNodeSuitableAsTrafficProxy added in v1.1.6

func IsNodeSuitableAsTrafficProxy(node *corev1.Node) bool

IsNodeSuitableAsTrafficProxy check whether node is suitable as a traffic proxy. mimic the logic of serviceController: https://github.com/kubernetes/kubernetes/blob/b6b494b4484b51df8dc6b692fab234573da30ab4/pkg/controller/service/controller.go#L605

func IsPodSuitableAsIPTarget added in v1.1.7

func IsPodSuitableAsIPTarget(pod *corev1.Pod) bool

IsPodSuitableAsIPTarget check whether pod is suitable as a TargetGroup's target (currently tested: are all pod's containers ready?).

func PodConditionForReadinessGate added in v1.1.8

func PodConditionForReadinessGate(pod *api.Pod, conditionType api.PodConditionType) (int, *api.PodCondition)

func PodHasReadinessGate added in v1.1.8

func PodHasReadinessGate(pod *api.Pod, conditionType api.PodConditionType) bool

PodHasReadinessGate returns true if the given pod has a readinessGate with the given conditionType

func PodReadinessGateConditionType added in v1.1.8

func PodReadinessGateConditionType(ingress *extensions.Ingress, backend *extensions.IngressBackend) api.PodConditionType

PodReadinessGateConditionType returns the PodConditionType that is associated with the given ingress and backend

Types

type EndpointResolver

type EndpointResolver interface {
	Resolve(*extensions.Ingress, *extensions.IngressBackend, string) ([]*elbv2.TargetDescription, error)
	ReverseResolve(*extensions.Ingress, *extensions.IngressBackend, []*elbv2.TargetDescription) ([]*corev1.Pod, error)
}

EndpointResolver resolves the endpoints for specific ingress backend

func NewEndpointResolver

func NewEndpointResolver(store store.Storer, cloud aws.CloudAPI) EndpointResolver

NewEndpointResolver constructs a new EndpointResolver

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL