Intermediate Kubernetes
Q49 / 100

What is the purpose of "node affinity" and "node selectors"?

Correct! Well done.

Incorrect.

The correct answer is B) To constrain which nodes a Pod can be scheduled on, based on node labels — node selectors provide simple matching, while affinity rules support more expressive and flexible constraints, including preferred (soft) rules

B

Correct Answer

To constrain which nodes a Pod can be scheduled on, based on node labels — node selectors provide simple matching, while affinity rules support more expressive and flexible constraints, including preferred (soft) rules

Explanation

nodeSelector provides exact-match scheduling constraints based on node labels, while node affinity supports more expressive matching (operators like In, NotIn) and both required (hard) and preferred (soft) rules.

Progress
49/100