Difference between revisions of "Kubernetes Pod Topology Spread Constraints"

From wikieduonline
Jump to navigation Jump to search
Line 10: Line 10:
 
     - [[maxSkew]]: <integer>
 
     - [[maxSkew]]: <integer>
 
       topologyKey: <string>
 
       topologyKey: <string>
       [[whenUnsatisfiable]]: [DoNotSchedule|ScheduleAnyway]
+
       [[whenUnsatisfiable]]: [ DoNotSchedule | ScheduleAnyway ]
 
       labelSelector: <object>
 
       labelSelector: <object>
  

Revision as of 15:58, 30 November 2022


apiVersion: v1
kind: Pod
metadata:
  name: mypod
spec:
  topologySpreadConstraints:
    - maxSkew: <integer>
      topologyKey: <string>
      whenUnsatisfiable: [ DoNotSchedule | ScheduleAnyway ]
      labelSelector: <object>


Related

See also

Advertising: