Skip to content

Limit helm history #65

@Luscha

Description

@Luscha

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}')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions