Merge pull request #45819 from 7sunarni/main
Rename example pod-with-affinity-anti-affinity.yamlpull/46170/head
commit
f7a1bfed88
|
@ -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