Bird
0
0

You specified nodeSelector: { "disktype": "ssd" } in your Pod spec, but the Pod remains unscheduled. What is the likely issue?

medium📝 Troubleshoot Q7 of 15
Kubernetes - Scheduling
You specified nodeSelector: { "disktype": "ssd" } in your Pod spec, but the Pod remains unscheduled. What is the likely issue?
ANo nodes are labeled with <code>disktype=ssd</code>
BThe nodeSelector syntax is incorrect
CThe Pod's container image is invalid
DThe Pod lacks resource requests
Step-by-Step Solution
Solution:
  1. Step 1: Verify nodeSelector syntax

    The syntax nodeSelector: { "disktype": "ssd" } is valid in YAML.
  2. Step 2: Check node labels

    If no nodes have the label disktype=ssd, the Pod cannot be scheduled.
  3. Step 3: Exclude other causes

    Invalid images or missing resource requests cause different errors, not specifically unscheduled due to nodeSelector.
  4. Final Answer:

    No nodes are labeled with disktype=ssd -> Option A
  5. Quick Check:

    nodeSelector requires matching node labels [OK]
Quick Trick: Pod unscheduled if no matching node labels [OK]
Common Mistakes:
  • Assuming nodeSelector syntax is wrong
  • Blaming container image for scheduling issues
  • Ignoring node labels when troubleshooting

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes