Kubernetes and Cloud Native Associate (KCNA) — Question 94
What does the "nodeSelector" within a PodSpec use to place Pods on the target nodes?
Answer options
- A. Annotations
- B. IP Addresses
- C. Hostnames
- D. Labels
Correct answer: D
Explanation
The correct answer is D, as 'nodeSelector' utilizes Labels to select nodes for Pod placement based on matching criteria. Options A, B, and C are incorrect because Annotations, IP Addresses, and Hostnames do not play a role in the selection process defined by 'nodeSelector'.