Skip to content

Commit e8040ac

Browse files
Merge pull request #58975 from xenolinux/pod-affinity
OCPBUGS#9406: Use the unique combination of labels when configuring anti-affinity rules
2 parents 80b4cef + 5721cb7 commit e8040ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/nodes-scheduler-pod-affinity-about.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ _Pod affinity_ and _pod anti-affinity_ allow you to constrain which nodes your p
1313
1414
For example, using affinity rules, you could spread or pack pods within a service or relative to pods in other services. Anti-affinity rules allow you to prevent pods of a particular service from scheduling on the same nodes as pods of another service that are known to interfere with the performance of the pods of the first service. Or, you could spread the pods of a service across nodes, availability zones, or availability sets to reduce correlated failures.
1515

16+
[NOTE]
17+
====
18+
A label selector might match pods with multiple pod deployments. Use unique combinations of labels when configuring anti-affinity rules to avoid matching pods.
19+
====
20+
1621
There are two types of pod affinity rules: _required_ and _preferred_.
1722

1823
Required rules *must* be met before a pod can be scheduled on a node. Preferred rules specify that, if the rule is met, the scheduler tries to enforce the rules, but does not guarantee enforcement.

0 commit comments

Comments
 (0)