Skip to content

Commit b7b53e6

Browse files
authored
Merge pull request #35537 from mengjiao-liu/sync-pod-with-node-affinity-zh
[zh-cn] Resync node affinity yaml
2 parents 04baff2 + c9ab8ae commit b7b53e6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

content/zh-cn/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/zh-cn/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)