Interview Prep/Helm/Releases, Upgrades & Rollbacks

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 →

  1. Use helm upgrade --install --atomic --wait --timeout 10m.
  2. Size --timeout for the slowest rollout plus hooks.
  3. 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.

All Helm questions Roadmap: Helm

More on Releases, Upgrades & Rollbacks