Why would you insist on `--atomic --wait` in CI, and what is the trade-off?
IntermediateScenarioReleases, Upgrades & Rollbacks
Answer
Situation read → Without them, Helm reports success as soon as the API accepts objects, and failed upgrades leave a failed release.
What I'd do →
- Use
helm upgrade --install --atomic --wait --timeout 10m. - Size
--timeoutfor the slowest rollout plus hooks. - Make readiness probes meaningful so "ready" means "works".
Why → CI gets a true success/failure signal and failures self-heal. The trade-off: an automatic rollback erases the broken state you might want to inspect, and a too-short timeout causes needless rollbacks. Capture kubectl describe and logs in the failure step before Helm rolls back, or use --wait alone with an explicit rollback step.
Interview tip → Mention capturing diagnostics because --atomic destroys evidence.
More on Releases, Upgrades & Rollbacks
A production upgrade starts failing health checks five minutes after the deploy. What do you do?BeginnerYou 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?AdvancedThe team scaled a Deployment manually to 10 replicas during a traffic spike. The next deploy scaled it back to 3. Explain and fix.IntermediateHow do you safely upgrade a third-party chart across a major version (for example ingress-nginx)?Advanced