Interview Prep/Kubernetes/Scheduling, Resources & Autoscaling

What is a `nodeSelector`?

BeginnerConceptScheduling, Resources & Autoscaling
Answer

The simplest scheduling constraint: a map of node labels the Pod requires. The Pod only schedules on nodes that carry all of those labels.

spec:
  nodeSelector: { disktype: ssd }
All Kubernetes questions Roadmap: Kubernetes core

More on Scheduling, Resources & Autoscaling