example(affinity): rename pod-with-affinity-anti-affinity.yaml => pod-with-affinity-preferred-weight.yaml

Signed-off-by: 7sunarni <710720732@qq.com>
This commit is contained in:
7sunarni 2024-04-10 16:19:42 +08:00
parent fc3d3d8f9e
commit 3054b8562d
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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{}},

View File

@ -1,7 +1,7 @@
apiVersion: v1
kind: Pod
metadata:
name: with-affinity-anti-affinity
name: with-affinity-preferred-weight
spec:
affinity:
nodeAffinity: