ETExamTower
Q12Kubernetes Fundamentals

Which field in a Pod or Deployment manifest ensures that Pods are scheduled exclusively on nodes that have particular labels?

← → navigate · a answer
Community votes
C
100% (2)
A
0% (0)
B
0% (0)
D
0% (0)
Discussion · 1
C 1
The correct answer is: C. nodeSelector: disktype: ssd nodeSelector tells Kubernetes to schedule the Pod only on nodes that have matching labels. Example: spec: nodeSelector: disktype: ssd The node must have this label: kubectl label node node-1 disktype=ssd Why not the others? annotations add metadata, not scheduling rules. labels identify objects, but do not schedule Pods by themselves. resources define CPU/memory requests and limits. Answer: C.