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:
parent
fc3d3d8f9e
commit
3054b8562d
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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{}},
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: with-affinity-anti-affinity
|
||||
name: with-affinity-preferred-weight
|
||||
spec:
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
Loading…
Reference in New Issue