Difference between revisions of "Kubernetes Pod Topology Spread Constraints"
Jump to navigation
Jump to search
↑ https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/#internal-default-constraints
Line 27: | Line 27: | ||
* [[Kubernetes pod affinity and anti affinity]] | * [[Kubernetes pod affinity and anti affinity]] | ||
[[spec.nodeSelector]] | [[spec.nodeSelector]] | ||
− | [[defaultConstraints:]] | + | [[defaultConstraints:]] <ref>https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/#internal-default-constraints</ref> |
== See also == | == See also == |
Revision as of 14:58, 16 December 2022
apiVersion: v1 kind: Pod metadata: name: mypod spec: topologySpreadConstraints: - maxSkew: <integer> topologyKey: <string> whenUnsatisfiable: [ DoNotSchedule | ScheduleAnyway ] labelSelector: <object>
topology.kubernetes.io/zone topology.kubernetes.io/region
Related
- Kubernetes Topology Manager introduced in (March 2020) Kubernetes 1.18
- NodeAffinity
- NodeSelector
kubectl get nodes -o wide
.../... NOMINATED NODE READINESS GATE
spec.nodeSelector defaultConstraints: [1]
See also
- Kubernetes Topology Manager, K8s Pod Topology Spread Constraints, topologySpreadConstraints, TopologyKey
Advertising: