Kubernetes Pod Topology Spread Constraints
(Redirected from K8s Pod Topology Spread Constraints)
Jump to navigation
Jump to search
apiVersion: v1 kind: Pod metadata: name: mypod spec: topologySpreadConstraints: - maxSkew: <integer> topologyKey: <string> whenUnsatisfiable: [ DoNotSchedule | ScheduleAnyway ] labelSelector: <object>
kubectl describe nodes | grep topology topology.kubernetes.io/zone topology.kubernetes.io/region
Related[edit]
- Kubernetes Topology Manager introduced in (March 2020) Kubernetes 1.18
- NodeAffinity
- NodeSelector
kubectl get nodes -o wide
.../... NOMINATED NODE READINESS GATE
spec.nodeSelector defaultConstraints: Kubernetes v1.24 [1]
See also[edit]
Advertising: