1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/nodes/pods/nodes-pods-node-selectors.adoc
2023-10-30 10:13:25 -04:00

24 lines
910 B
Plaintext

:_mod-docs-content-type: ASSEMBLY
:context: nodes-pods-node-selectors
[id="nodes-pods-node-selectors"]
= Placing pods on specific nodes using node selectors
include::_attributes/common-attributes.adoc[]
toc::[]
A _node selector_ specifies a map of key-value pairs. The rules are defined using custom labels on nodes and selectors specified in pods.
For the pod to be eligible to run on a node, the pod must have the indicated key-value pairs as the label on the node.
If you are using node affinity and node selectors in the same pod configuration, see the important considerations below.
// 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-selectors-pod.adoc[leveloffset=+1]