mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
41 lines
1.7 KiB
Plaintext
41 lines
1.7 KiB
Plaintext
:_mod-docs-content-type: ASSEMBLY
|
|
:context: nodes-scheduler-node-affinity
|
|
[id="nodes-scheduler-node-affinity"]
|
|
= Controlling pod placement on nodes using node affinity rules
|
|
include::_attributes/common-attributes.adoc[]
|
|
|
|
toc::[]
|
|
|
|
|
|
|
|
Affinity is a property of pods that controls the nodes on which they prefer to be scheduled.
|
|
|
|
In {product-title} node affinity is a set of rules used by the scheduler to determine where a pod can be placed.
|
|
The rules are defined using custom labels on the nodes and label selectors specified in pods.
|
|
|
|
// The following include statements pull in the module files that comprise
|
|
// the assembly. Include any combination of concept, procedure, or reference
|
|
// modules required to cover the user story. You can also include other
|
|
// assemblies.
|
|
|
|
include::modules/nodes-scheduler-node-affinity-about.adoc[leveloffset=+1]
|
|
|
|
include::modules/nodes-scheduler-node-affinity-configuring-required.adoc[leveloffset=+1]
|
|
|
|
include::modules/nodes-scheduler-node-affinity-configuring-preferred.adoc[leveloffset=+1]
|
|
|
|
include::modules/nodes-scheduler-node-affinity-example.adoc[leveloffset=+1]
|
|
|
|
ifndef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
|
|
include::modules/olm-overriding-operator-pod-affinity.adoc[leveloffset=+1]
|
|
|
|
endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
|
|
|
|
ifndef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
|
|
[id="nodes-scheduler-node-affinity-addtl-resources_{context}"]
|
|
[role="_additional-resources"]
|
|
== Additional resources
|
|
|
|
* xref:../../nodes/nodes/nodes-nodes-working.adoc#nodes-nodes-working-updating_nodes-nodes-working[Understanding how to update labels on nodes]
|
|
endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
|