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 →
- Enable an HPA and omit
replicasfrom the template when autoscaling is on. - If manual scaling is a policy, put the new count in values and deploy it.
- With Argo CD, add
ignoreDifferenceson/spec/replicaswhen HPA manages it.
Why → Only one controller should own a field.
Interview tip → Use the phrase "field ownership" and mention server-side apply.
More on Releases, Upgrades & Rollbacks
A production upgrade starts failing health checks five minutes after the deploy. What do you do?BeginnerWhy would you insist on `--atomic --wait` in CI, and what is the trade-off?IntermediateYou need zero-downtime upgrades of the API with Helm. What must be true in the chart?IntermediateA pipeline was cancelled mid-upgrade and now every deploy fails with "another operation is in progress". What do you do?AdvancedA rollback is requested, but the failed release ran a migration that dropped a column. What do you do?AdvancedHow do you safely upgrade a third-party chart across a major version (for example ingress-nginx)?Advanced