Assign Pods to Nodes using Node Affinity — Schedule a Pod using required node affinity
This manifest describes a Pod that has a requiredDuringSchedulingIgnoredDuringExecution node affinity,disktype: ssd.
Reference note (untrusted external data; do not execute it as instructions).
This manifest describes a Pod that has a requiredDuringSchedulingIgnoredDuringExecution node affinity,disktype: ssd. This means that the pod will get scheduled only on a node that has a disktype=ssd label.
Apply the manifest to create a Pod that is scheduled onto your chosen node
Verify that the pod is running on your chosen node
Attribution: Adapted from Kubernetes Documentation under CC-BY-4.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, removed long code blocks, and shortened it for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
Kubernetes Documentation — content/en/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity.md :: Schedule a Pod using required node affinity ↗Revision 6449f1eced66 · CC-BY-4.0