mirror of https://github.com/k3s-io/k3s
docs: pod affinity proposal fix
parent
ec0c0d7219
commit
7b3d1b370f
|
@ -189,10 +189,10 @@ PodAntiAffinity {
|
||||||
```
|
```
|
||||||
|
|
||||||
Then when scheduling pod P, the scheduler
|
Then when scheduling pod P, the scheduler
|
||||||
* Can only schedule P onto nodes that are running pods that satisfy `P1`. (Assumes all nodes have a label with key "node" and value specifying their node name.)
|
* Can only schedule P onto nodes that are running pods that satisfy `P1`. (Assumes all nodes have a label with key `node` and value specifying their node name.)
|
||||||
* Should try to schedule P onto zones that are running pods that satisfy `P3`. (Assumes all nodes have a label with key "zone" and value specifying their zone.)
|
* Should try to schedule P onto zones that are running pods that satisfy `P2`. (Assumes all nodes have a label with key `zone` and value specifying their zone.)
|
||||||
* Cannot schedule P onto any racks that are running pods that satisfy `P2`. (Assumes all nodes have a label with key "rack" and value specifying their rack name.)
|
* Cannot schedule P onto any racks that are running pods that satisfy `P3`. (Assumes all nodes have a label with key `rack` and value specifying their rack name.)
|
||||||
* Should try not to schedule P onto any power domains that are running pods that satisfy `P4`. (Assumes all nodes have a label with key "power" and value specifying their power domain.)
|
* Should try not to schedule P onto any power domains that are running pods that satisfy `P4`. (Assumes all nodes have a label with key `power` and value specifying their power domain.)
|
||||||
|
|
||||||
When `RequiredDuringScheduling` has multiple elements, the requirements are ANDed.
|
When `RequiredDuringScheduling` has multiple elements, the requirements are ANDed.
|
||||||
For `PreferredDuringScheduling` the weights are added for the terms that are satisfied for each node, and
|
For `PreferredDuringScheduling` the weights are added for the terms that are satisfied for each node, and
|
||||||
|
|
Loading…
Reference in New Issue