Interview Prep/Helm/Releases, Upgrades & Rollbacks

The team scaled a Deployment manually to 10 replicas during a traffic spike. The next deploy scaled it back to 3. Explain and fix.

IntermediateScenarioReleases, Upgrades & Rollbacks
Answer

Situation read → The three-way merge sees live 10, chart 3, and patches back to 3.

What I'd do →

  1. Enable an HPA and omit replicas from the template when autoscaling is on.
  2. If manual scaling is a policy, put the new count in values and deploy it.
  3. With Argo CD, add ignoreDifferences on /spec/replicas when HPA manages it.

Why → Only one controller should own a field.

Interview tip → Use the phrase "field ownership" and mention server-side apply.

All Helm questions Roadmap: Helm

More on Releases, Upgrades & Rollbacks