Bird
0
0

Given these node labels: nodeA: disktype=ssd, region=us-eastnodeB: disktype=ssd, region=us-westnodeC: disktype=hdd, region=us-west And a Pod spec with this nodeSelector:

medium📝 Command Output Q5 of 15
Kubernetes - Scheduling
Given these node labels:
  • nodeA: disktype=ssd, region=us-east
  • nodeB: disktype=ssd, region=us-west
  • nodeC: disktype=hdd, region=us-west
And a Pod spec with this nodeSelector:
nodeSelector:
  disktype: ssd
  region: us-west
Which node(s) can the Pod be scheduled on?
AnodeB and nodeC
BnodeA and nodeB
COnly nodeB
DAll nodes
Step-by-Step Solution
Solution:
  1. Step 1: Understand nodeSelector matching

    Pod will be scheduled only on nodes matching all specified labels.
  2. Step 2: Check nodes against labels

    nodeB has disktype=ssd and region=us-west, matching both labels. nodeA has region=us-east, nodeC has disktype=hdd, so they don't match both labels.
  3. Final Answer:

    Only nodeB -> Option C
  4. Quick Check:

    Pod requires all labels to match node labels [OK]
Quick Trick: Pod schedules only on nodes matching all nodeSelector labels [OK]
Common Mistakes:
  • Assuming partial label matches are sufficient
  • Ignoring region label mismatch
  • Confusing disktype values

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes