File tree Expand file tree Collapse file tree 1 file changed +16
-15
lines changed
content/en/docs/concepts/scheduling-eviction Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -391,21 +391,22 @@ metadata:
391
391
...
392
392
spec:
393
393
template:
394
- affinity:
395
- podAffinity:
396
- requiredDuringSchedulingIgnoredDuringExecution:
397
- - labelSelector:
398
- matchExpressions:
399
- - key: app
400
- operator: In
401
- values:
402
- - database
403
- topologyKey: topology.kubernetes.io/zone
404
- # Only Pods from a given rollout are taken into consideration when calculating pod affinity.
405
- # If you update the Deployment, the replacement Pods follow their own affinity rules
406
- # (if there are any defined in the new Pod template)
407
- matchLabelKeys:
408
- - pod-template-hash
394
+ spec:
395
+ affinity:
396
+ podAffinity:
397
+ requiredDuringSchedulingIgnoredDuringExecution:
398
+ - labelSelector:
399
+ matchExpressions:
400
+ - key: app
401
+ operator: In
402
+ values:
403
+ - database
404
+ topologyKey: topology.kubernetes.io/zone
405
+ # Only Pods from a given rollout are taken into consideration when calculating pod affinity.
406
+ # If you update the Deployment, the replacement Pods follow their own affinity rules
407
+ # (if there are any defined in the new Pod template)
408
+ matchLabelKeys:
409
+ - pod-template-hash
409
410
` ` `
410
411
411
412
# ### mismatchLabelKeys
You can’t perform that action at this time.
0 commit comments