Bird
0
0

You wrote a Kubernetes YAML file but your containers are not scaling as expected. What is a likely cause?

medium📝 Troubleshoot Q14 of 15
Kubernetes - Fundamentals
You wrote a Kubernetes YAML file but your containers are not scaling as expected. What is a likely cause?
AThe YAML file has too many comments.
BThe YAML file is missing the HorizontalPodAutoscaler configuration.
CKubernetes does not support scaling containers.
DYou need to restart your computer to scale containers.
Step-by-Step Solution
Solution:
  1. Step 1: Identify scaling configuration in Kubernetes

    Scaling containers requires a HorizontalPodAutoscaler resource in the YAML file.
  2. Step 2: Evaluate other options

    Comments do not affect scaling, Kubernetes supports scaling, and restarting computer is unrelated.
  3. Final Answer:

    The YAML file is missing the HorizontalPodAutoscaler configuration. -> Option B
  4. Quick Check:

    Scaling needs autoscaler config in YAML [OK]
Quick Trick: Missing autoscaler config stops scaling [OK]
Common Mistakes:
  • Blaming comments for scaling issues
  • Thinking Kubernetes can't scale containers
  • Restarting computer to fix scaling

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes