Skip to content

Commit c4d77e3

Browse files
authored
Merge pull request #34785 from lambdanis/fix-node-affinity-docs
Fix regressions in node affinity docs
2 parents 13a3118 + f4a62ba commit c4d77e3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

content/en/examples/pods/pod-with-affinity-anti-affinity.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ spec:
88
requiredDuringSchedulingIgnoredDuringExecution:
99
nodeSelectorTerms:
1010
- matchExpressions:
11-
- key: topology.kubernetes.io/zone
11+
- key: kubernetes.io/os
1212
operator: In
1313
values:
14-
- antarctica-east1
15-
- antarctica-west1
14+
- linux
1615
preferredDuringSchedulingIgnoredDuringExecution:
1716
- weight: 1
1817
preference:

content/en/examples/pods/pod-with-node-affinity.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ spec:
88
requiredDuringSchedulingIgnoredDuringExecution:
99
nodeSelectorTerms:
1010
- matchExpressions:
11-
- key: kubernetes.io/os
11+
- key: topology.kubernetes.io/zone
1212
operator: In
1313
values:
14-
- linux
14+
- antarctica-east1
15+
- antarctica-west1
1516
preferredDuringSchedulingIgnoredDuringExecution:
1617
- weight: 1
1718
preference:

0 commit comments

Comments
 (0)