Files
c/kubernetes/docs/v1_topology_spread_constraint.md
2021-03-17 16:50:46 +08:00

2.2 KiB

v1_topology_spread_constraint_t

Properties

Name Type Description Notes
label_selector v1_label_selector_t * [optional]
max_skew int MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: zone1
topology_key char * TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a &quot;bucket&quot;, and try to put balanced number of pods into each bucket. It's a required field.
when_unsatisfiable char * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as &quot;Unsatisfiable&quot; if and only if placing incoming pod on any topology violates &quot;MaxSkew&quot;. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: zone1

[Back to Model list] [Back to API list] [Back to README]