diff --git a/content/en/docs/concepts/scheduling-eviction/assign-pod-node.md b/content/en/docs/concepts/scheduling-eviction/assign-pod-node.md index 374f044b5f..5d62867331 100644 --- a/content/en/docs/concepts/scheduling-eviction/assign-pod-node.md +++ b/content/en/docs/concepts/scheduling-eviction/assign-pod-node.md @@ -173,7 +173,7 @@ scheduling decision for the Pod. For example, consider the following Pod spec: -{{% code_sample file="pods/pod-with-affinity-anti-affinity.yaml" %}} +{{% code_sample file="pods/pod-with-affinity-preferred-weight.yaml" %}} If there are two possible nodes that match the `preferredDuringSchedulingIgnoredDuringExecution` rule, one with the diff --git a/content/en/examples/examples_test.go b/content/en/examples/examples_test.go index f0d4a13bbd..ee17a3fdee 100644 --- a/content/en/examples/examples_test.go +++ b/content/en/examples/examples_test.go @@ -613,7 +613,7 @@ func TestExampleObjectSchemas(t *testing.T) { "pod-projected-svc-token": {&api.Pod{}}, "pod-rs": {&api.Pod{}, &api.Pod{}}, "pod-single-configmap-env-variable": {&api.Pod{}}, - "pod-with-affinity-anti-affinity": {&api.Pod{}}, + "pod-with-affinity-preferred-weight": {&api.Pod{}}, "pod-with-node-affinity": {&api.Pod{}}, "pod-with-pod-affinity": {&api.Pod{}}, "pod-with-scheduling-gates": {&api.Pod{}}, diff --git a/content/en/examples/pods/pod-with-affinity-anti-affinity.yaml b/content/en/examples/pods/pod-with-affinity-preferred-weight.yaml similarity index 94% rename from content/en/examples/pods/pod-with-affinity-anti-affinity.yaml rename to content/en/examples/pods/pod-with-affinity-preferred-weight.yaml index cb8c5650b0..3b064daaec 100644 --- a/content/en/examples/pods/pod-with-affinity-anti-affinity.yaml +++ b/content/en/examples/pods/pod-with-affinity-preferred-weight.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Pod metadata: - name: with-affinity-anti-affinity + name: with-affinity-preferred-weight spec: affinity: nodeAffinity: