Study. uk . com
  1. Home
  2. All questions
  3. Question 164

CKA study material · question 164 of 1000

Which is the simplest way to confine a Pod to nodes carrying a particular label?

  1. nodeSelector
  2. A topology spread constraint
  3. A PriorityClass
  4. A taint on every other node
Show the answer

Answer: A. nodeSelector

nodeSelector is the simplest placement constraint: the Pod runs only on nodes carrying every label it lists.

Source: Assigning Pods to Nodes (Kubernetes) — nodeSelector

Challenge yourself on this topic → Study as cards