From bcd1b8b44ee402980b03acb36b5e0e64259b672a Mon Sep 17 00:00:00 2001 From: "yanrong.shi" Date: Wed, 13 Jul 2022 00:19:59 +0800 Subject: [PATCH] Update pod-with-affinity-anti-affinity.yaml --- .../zh-cn/examples/pods/pod-with-affinity-anti-affinity.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/zh-cn/examples/pods/pod-with-affinity-anti-affinity.yaml b/content/zh-cn/examples/pods/pod-with-affinity-anti-affinity.yaml index a7d14b2d6f..eeb3cb372b 100644 --- a/content/zh-cn/examples/pods/pod-with-affinity-anti-affinity.yaml +++ b/content/zh-cn/examples/pods/pod-with-affinity-anti-affinity.yaml @@ -8,10 +8,11 @@ spec: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - - key: kubernetes.io/os + - key: topology.kubernetes.io/zone operator: In values: - - linux + - antarctica-east1 + - antarctica-west1 preferredDuringSchedulingIgnoredDuringExecution: - weight: 1 preference: