⎈ k8s knowledge compiler

PodAffinityTerm [api_object]ai-synthesized · conf 0.82

Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running

core

A Pod Affinity Term is a specific rule within a Pod Affinity that specifies how pods should be placed in a cluster.

Why it matters It allows for more fine-grained control over pod placement.

Key facts - Each term has a label selector and a topology key - Terms can be specified as required or preferred

Common pitfalls - Incorrectly specifying the topology key

Related api:PodAffinity

Sources

swagger.jsonio.k8s.api.core.v1.PodAffinityTerm

Related (4)

related_to LabelSelectorreferences type conf=1
related_to PodAffinityreferences type conf=1
related_to PodAntiAffinityreferences type conf=1
related_to WeightedPodAffinityTermreferences type conf=1

← all API Explorer