Difference between revisions of "Kubernetes Pod Topology Spread Constraints"

From wikieduonline
Jump to navigation Jump to search
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/
  
<pre>
+
 
apiVersion: v1
+
apiVersion: v1
kind: Pod
+
[[kind: Pod]]
metadata:
+
metadata:
  name: mypod
+
  name: mypod
spec:
+
spec:
  topologySpreadConstraints:
+
  topologySpreadConstraints:
    - maxSkew: <integer>
+
    - maxSkew: <integer>
      topologyKey: <string>
+
      topologyKey: <string>
      whenUnsatisfiable: <string>
+
      whenUnsatisfiable: <string>
      labelSelector: <object>
+
      labelSelector: <object>
</pre>
 
  
  

Revision as of 11:00, 30 November 2022

Advertising: