Bird
0
0

Which of the following is the correct YAML key to specify the maximum number of pods in a ResourceQuota?

easy📝 Syntax Q3 of 15
Kubernetes - Namespaces
Which of the following is the correct YAML key to specify the maximum number of pods in a ResourceQuota?
ApodCount
BmaxPods
Cpods
Dmax_pods
Step-by-Step Solution
Solution:
  1. Step 1: Recall ResourceQuota spec keys

    The key to limit pods is simply 'pods' under 'hard' in ResourceQuota spec.
  2. Step 2: Verify other options

    Keys like 'maxPods', 'podCount', or 'max_pods' are invalid in ResourceQuota YAML.
  3. Final Answer:

    pods -> Option C
  4. Quick Check:

    Max pods key in ResourceQuota = pods [OK]
Quick Trick: Use 'pods' key to limit pod count in ResourceQuota [OK]
Common Mistakes:
  • Using camelCase or snake_case keys incorrectly
  • Confusing with LimitRange keys
  • Misspelling the key as 'podCount'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes