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 6f8f063 + 0ed3faf commit 7d07894Copy full SHA for 7d07894
content/en/examples/deployments/deployment-with-capacity-reservation.yaml
@@ -20,10 +20,12 @@ spec:
20
# if possible
21
podAntiAffinity:
22
preferredDuringSchedulingIgnoredDuringExecution:
23
- - labelSelector:
24
- matchLabels:
25
- app: placeholder
26
- topologyKey: "kubernetes.io/hostname"
+ - weight: 100
+ podAffinityTerm:
+ labelSelector:
+ matchLabels:
27
+ app.kubernetes.io/name: capacity-placeholder
28
+ topologyKey: topology.kubernetes.io/hostname
29
containers:
30
- name: pause
31
image: registry.k8s.io/pause:3.6
0 commit comments