We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd0fa83 + ea09060 commit 67eefdeCopy full SHA for 67eefde
content/zh-cn/examples/deployments/deployment-with-capacity-reservation.yaml
@@ -18,11 +18,12 @@ spec:
18
priorityClassName: placeholder
19
affinity: # 有可能的话,将这些 Pod 开销放到不同的节点
20
podAntiAffinity:
21
- preferredDuringSchedulingIgnoredDuringExecution:
22
- - labelSelector:
23
- matchLabels:
24
- app: placeholder
25
- topologyKey: "kubernetes.io/hostname"
+ - weight: 100
+ podAffinityTerm:
+ labelSelector:
+ matchLabels:
+ app.kubernetes.io/name: capacity-placeholder
26
+ topologyKey: topology.kubernetes.io/hostname
27
containers:
28
- name: pause
29
image: registry.k8s.io/pause:3.6
0 commit comments