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:
|
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
|
If there are two possible nodes that match the
|
||||||
`preferredDuringSchedulingIgnoredDuringExecution` rule, one with the
|
`preferredDuringSchedulingIgnoredDuringExecution` rule, one with the
|
||||||
|
|
|
@ -613,7 +613,7 @@ func TestExampleObjectSchemas(t *testing.T) {
|
||||||
"pod-projected-svc-token": {&api.Pod{}},
|
"pod-projected-svc-token": {&api.Pod{}},
|
||||||
"pod-rs": {&api.Pod{}, &api.Pod{}},
|
"pod-rs": {&api.Pod{}, &api.Pod{}},
|
||||||
"pod-single-configmap-env-variable": {&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-node-affinity": {&api.Pod{}},
|
||||||
"pod-with-pod-affinity": {&api.Pod{}},
|
"pod-with-pod-affinity": {&api.Pod{}},
|
||||||
"pod-with-scheduling-gates": {&api.Pod{}},
|
"pod-with-scheduling-gates": {&api.Pod{}},
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: with-affinity-anti-affinity
|
name: with-affinity-preferred-weight
|
||||||
spec:
|
spec:
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
Loading…
Reference in New Issue