Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit helm history #65

Open
Luscha opened this issue Feb 25, 2025 · 0 comments
Open

Limit helm history #65

Luscha opened this issue Feb 25, 2025 · 0 comments

Comments

@Luscha
Copy link
Contributor

Luscha commented Feb 25, 2025

As the cluster grow we need to ensure that helm do not retain all version's resources (secrets, configmaps, ...)

You can tell Helm to keep only a certain number of revisions by setting --history-max during installation or upgrade:

helm upgrade --install <release-name> <chart-path> -n <namespace> --history-max 5

This ensures that Helm retains only the last 5 revisions, deleting older ones automatically.

You can also update an existing release with:

helm upgrade <release-name> <chart-path> -n <namespace> --history-max 5

Delete Old Revisions Manually

kubectl delete secret -n <namespace> $(kubectl get secrets -n <namespace> | grep 'sh.helm.release' | awk '{print $1}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant