Bird
0
0

You want to use Vertical Pod Autoscaler but avoid pod restarts during resource updates. Which updateMode should you choose and why?

hard📝 Best Practice Q15 of 15
Kubernetes - Resource Management
You want to use Vertical Pod Autoscaler but avoid pod restarts during resource updates. Which updateMode should you choose and why?
A"Initial" to set resources only at pod creation without restarts later
B"Auto" to update resources and restart pods automatically
C"Off" to disable updates and avoid restarts
D"Manual" to require manual approval before updates
Step-by-Step Solution
Solution:
  1. Step 1: Understand updateMode options

    "Off" disables updates, "Auto" updates and restarts pods, "Initial" sets resources only at pod start, "Manual" requires manual approval.
  2. Step 2: Choose mode to avoid restarts

    "Initial" mode applies resource recommendations only when pods start, so no restarts happen later.
  3. Final Answer:

    "Initial" to set resources only at pod creation without restarts later -> Option A
  4. Quick Check:

    Initial mode avoids restarts by updating only at pod start [OK]
Quick Trick: Use Initial mode to avoid pod restarts on resource changes [OK]
Common Mistakes:
  • Choosing Off disables VPA completely
  • Assuming Manual mode avoids restarts automatically
  • Confusing Auto mode with no restarts

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes