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

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'.