Create two-constraints.yaml
parent
f3ab99f28f
commit
19772a88c9
|
@ -0,0 +1,23 @@
|
||||||
|
kind: Pod
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: mypod
|
||||||
|
labels:
|
||||||
|
foo: bar
|
||||||
|
spec:
|
||||||
|
topologySpreadConstraints:
|
||||||
|
- maxSkew: 1
|
||||||
|
topologyKey: zone
|
||||||
|
whenUnsatisfiable: DoNotSchedule
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
foo: bar
|
||||||
|
- maxSkew: 1
|
||||||
|
topologyKey: node
|
||||||
|
whenUnsatisfiable: DoNotSchedule
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
foo: bar
|
||||||
|
containers:
|
||||||
|
- name: pause
|
||||||
|
image: registry.k8s.io/pause:3.1
|
Loading…
Reference in New Issue