QuestionQ94

VerifiedKubernetes Fundamentals

Which Kubernetes feature provides the simplest way to ensure that a Pod or Deployment runs only on nodes that have a particular label?

Explanation

nodeSelector constrains Pod scheduling to nodes whose labels match the specified key-value pairs. A Deployment applies this setting through its Pod template, so its Pods are scheduled only on matching nodes.

Community Discussion

No comments yet. Be the first to start the discussion!