Difference between revisions of "Kubernetes Pod Topology Spread Constraints"

From wikieduonline
Jump to navigation Jump to search
 
(24 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
   name: mypod
 
   name: mypod
 
  [[spec:]]
 
  [[spec:]]
   topologySpreadConstraints:
+
   [[topologySpreadConstraints:]]
 
     - [[maxSkew]]: <integer>
 
     - [[maxSkew]]: <integer>
       topologyKey: <string>
+
       [[topologyKey]]: <string>
       whenUnsatisfiable: <string>
+
       [[whenUnsatisfiable]]: [ [[DoNotSchedule]] | [[ScheduleAnyway]] ]
       labelSelector: <object>
+
       [[labelSelector:]] <object>
  
 +
 +
[[kubectl describe nodes]] | grep topology
 +
[[topology.kubernetes.io/zone]]
 +
[[topology.kubernetes.io/region]]
  
 
== Related ==
 
== Related ==
 
* [[Kubernetes Topology Manager]] introduced in (March 2020) [[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 ==
* {{K8s}}
+
* {{Kubernetes topology manager}}
  
 
[[Category:K8s]]
 
[[Category:K8s]]

Latest revision as of 17:43, 16 December 2022

Advertising: