Difference between revisions of "Kubernetes Pod Topology Spread Constraints"

From wikieduonline
Jump to navigation Jump to search
Line 13: Line 13:
 
       labelSelector: <object>
 
       labelSelector: <object>
  
 +
 +
[[topology.kubernetes.io/zone]]
 +
[[topology.kubernetes.io/region]]
  
 
== Related ==
 
== Related ==

Revision as of 15:59, 30 November 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

See also

Advertising: