Releases have 300 revisions each and `helm list` is slow. What happened and what do you do?
IntermediateScenarioReleases, Upgrades & Rollbacks
Answer
Situation read → Someone set --history-max 0 (unlimited) on a frequently deployed release.
What I'd do →
- Set
--history-max 15in the pipeline; the next upgrade prunes old revisions. - If needed immediately, delete old revision Secrets except the last N:
kubectl get secret -n shop -l owner=helm,name=shop --sort-by=.metadata.creationTimestamp -o name | head -n -15 | xargs kubectl delete -n shop. - Check etcd size trends.
Why → Each revision is a Secret up to 1 MiB; hundreds of them burden etcd and the API server.
Interview tip → Know the default is 10 on upgrade.
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