website/content/fr/examples/pods/topology-spread-constraints/two-constraints.yaml

24 lines
427 B
YAML
Raw Normal View History

2020-07-31 14:50:11 +00:00
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
2020-09-20 09:59:07 +00:00
image: k8s.gcr.io/pause:3.1