Skip to content

Commit

Permalink
Clarify node affinity API (#38032)
Browse files Browse the repository at this point in the history
* Clarify node affinity API

* Refer to the items by their names

* Clarify cardinality
  • Loading branch information
alculquicondor authored Nov 29, 2022
1 parent abc42e0 commit 58d150d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
reviewers:
- davidopp
- kevin-wangzefeng
- bsalamat
- alculquicondor
title: Assigning Pods to Nodes
content_type: concept
weight: 20
Expand Down Expand Up @@ -144,13 +144,13 @@ to repel Pods from specific nodes.
If you specify both `nodeSelector` and `nodeAffinity`, *both* must be satisfied
for the Pod to be scheduled onto a node.

If you specify multiple `nodeSelectorTerms` associated with `nodeAffinity`
types, then the Pod can be scheduled onto a node if one of the specified `nodeSelectorTerms` can be
satisfied.
If you specify multiple terms in `nodeSelectorTerms` associated with `nodeAffinity`
types, then the Pod can be scheduled onto a node if one of the specified terms
can be satisfied (terms are ORed).

If you specify multiple `matchExpressions` associated with a single `nodeSelectorTerms`,
then the Pod can be scheduled onto a node only if all the `matchExpressions` are
satisfied.
If you specify multiple expressions in a single `matchExpressions` field associated with a
term in `nodeSelectorTerms`, then the Pod can be scheduled onto a node only
if all the expressions are satisfied (expressions are ANDed).
{{</note>}}

See [Assign Pods to Nodes using Node Affinity](/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/)
Expand Down

0 comments on commit 58d150d

Please sign in to comment.