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

CKA study material · question 680 of 1000

A node affinity rule lists two entries under nodeSelectorTerms, each with one matchExpressions clause. When does a node satisfy the rule?

  1. When it matches both terms
  2. When it matches the first term only
  3. When it matches either term
  4. When it matches neither term, which the scheduler treats as unconstrained
Show the answer

Answer: C. When it matches either term

Terms in nodeSelectorTerms are ORed together, while several expressions inside a single term are ANDed — a distinction that changes the meaning of a rule entirely.

Source: Assigning Pods to Nodes (Kubernetes) — Affinity and anti-affinity › Node affinity

Challenge yourself on this topic → Study as cards