Interview Prep/Helm/Releases, Upgrades & Rollbacks

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 →

  1. Set --history-max 15 in the pipeline; the next upgrade prunes old revisions.
  2. 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.
  3. 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.

All Helm questions Roadmap: Helm

More on Releases, Upgrades & Rollbacks