How do you implement a canary release when your deploy tool is Helm?
AdvancedScenarioReleases, Upgrades & Rollbacks
Answer
Situation read → Helm itself does all-at-once rolling updates; canaries need traffic splitting.
What I'd do →
- Use Argo Rollouts: the chart renders a
Rolloutinstead of aDeploymentwith canary steps and analysis. - Or run two releases (
shop-stable,shop-canary) behind a weighted Ingress/Gateway route, with weights in values. - Promote by upgrading stable to the canary version and removing the canary.
- Automate analysis with Prometheus metrics.
Why → Helm packages and versions the pieces; a progressive delivery controller controls traffic.
Interview tip → Say Helm is not a progressive delivery tool and name Argo Rollouts or Flagger.
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?AdvancedThe team scaled a Deployment manually to 10 replicas during a traffic spike. The next deploy scaled it back to 3. Explain and fix.Intermediate