Bird
0
0

You created a PriorityClass with globalDefault: true but pods without priorityClassName still have priority 0. What is the likely cause?

medium📝 Troubleshoot Q14 of 15
Kubernetes - Production Best Practices
You created a PriorityClass with globalDefault: true but pods without priorityClassName still have priority 0. What is the likely cause?
AThe PriorityClass value is set to 0.
BglobalDefault only works for DaemonSets, not pods.
CPods must specify priorityClassName to get any priority.
DThe PriorityClass resource was not applied correctly.
Step-by-Step Solution
Solution:
  1. Step 1: Understand globalDefault behavior

    A PriorityClass with globalDefault: true sets the default priority for pods without a specified class.
  2. Step 2: Check why pods have priority 0

    If pods still have priority 0, likely the PriorityClass was not created or applied properly, so Kubernetes does not see it as default.
  3. Final Answer:

    The PriorityClass resource was not applied correctly. -> Option D
  4. Quick Check:

    globalDefault requires correct PriorityClass creation [OK]
Quick Trick: Check if PriorityClass resource is applied when globalDefault fails [OK]
Common Mistakes:
  • Assuming pods need priorityClassName despite globalDefault
  • Setting globalDefault on PriorityClass with value 0
  • Believing globalDefault only applies to DaemonSets

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes