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
(30 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
* https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ | * https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | 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 == | == Related == | ||
− | * [[Kubernetes 1.18]] | + | * [[Kubernetes Topology Manager]] introduced in (March 2020) [[Kubernetes 1.18]] |
+ | * [[NodeAffinity]] | ||
+ | * [[NodeSelector]] | ||
+ | * <code>[[kubectl get nodes -o wide]]</code> | ||
+ | ::<code>.../... NOMINATED NODE READINESS GATE</code> | ||
+ | * [[Kubernetes troubleshooting]] | ||
+ | * [[Kubernetes scheduling]] | ||
+ | * [[Kubernetes pod affinity and anti affinity]] | ||
+ | [[spec.nodeSelector]] | ||
+ | [[defaultConstraints:]] [[Kubernetes v1.24]] <ref>https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/#internal-default-constraints</ref> | ||
+ | |||
+ | * [[Karpenter]] | ||
== See also == | == See also == | ||
+ | * {{Kubernetes topology manager}} | ||
− | + | [[Category:K8s]] |
Latest revision as of 17:43, 16 December 2022
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]
- Kubernetes Topology Manager, K8s Pod Topology Spread Constraints, topologySpreadConstraints, TopologyKey
Advertising: