Skip to content

Set --history-max on a already deployed cluster #3414

Closed

Description

@pierreozoux

for the sake of cleanlyness, I'm really interested on adding this option to my cluster.

Reading various thread didn't lead me to a clear path.
I tried various things without success. Would be glad to get some help.

helm init --upgrade --history-max=10

I think this did work, but I'm still seeing my old ConfigMaps (even after an upgrade of the chart)

How can I confirm that Tiller is configured now. And how can I delete old revisions?
(running v2.8.0)

Thanks!

Activity

  1. changed the title [-]Set History max on a already deployed cluster[/-] [+]Set --history-max on a already deployed cluster[/+] on Jan 29, 2018
  2. davidchua commented on Jan 30, 2018

    @davidchua

    To add on to OP, I'm also having the same issue on 2.7.2.

    When doing a helm init --history-max=N --upgrade --debug, the returned deployment manifest shows TILLER_HISTORY_MAX env var set on the deployment with the correct value.

    But when doing a kubectl log <tiller_pod>, it shows Max history per release is 0. Doing a describe on the deployment also shows that the TILLER_HISTORY_MAX is missing.

    To fix, I had to manually edit the tiller-deploy manifest to add the ENV VAR and it restarts with the correct Max history per release.

  3. bacongobbler commented on Feb 2, 2018

    @bacongobbler
    Member

    If anyone wants to fix this, it should be an easy change here to apply the --history-max option to the manifest when --upgrade is supplied.

  4. mattclegg commented on Feb 5, 2018

    @mattclegg
    Contributor

    @bacongobbler I've attempted to fix this; #3454

  5. andor44 commented on Feb 7, 2018

    @andor44

    For what it's worth, you can add the env var the option sets yourself manually to Tiller's pod and it will respect it (i.e. go back and delete old ones)

  6. fejta-bot commented on May 8, 2018

    @fejta-bot

    Issues go stale after 90d of inactivity.
    Mark the issue as fresh with /remove-lifecycle stale.
    Stale issues rot after an additional 30d of inactivity and eventually close.

    If this issue is safe to close now please do so with /close.

    Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
    /lifecycle stale

  7. jgiles commented on May 25, 2018

    @jgiles

    @pierreozoux did you mean to close this issue? It looks like #3454 is still open.

    I just got bit by this today; we have multiple clusters where the number of configmaps is becoming a real problem (e.g. it causes the Kubernetes dashboard to crash, see kubernetes-retired/dashboard#3052).

    $ kubectl get configmaps -n kube-system | wc -l
        2650
    
  8. Nowaker commented on Aug 27, 2018

    @Nowaker

    Can this be reopened? CC @bacongobbler

  9. pc-rshetty commented on Feb 4, 2019

    @pc-rshetty

    I had tiller running on 2.11.0 and i did NOT have it configured with --history-max and hence i have the tiller environment variable as below
    Environment:
    TILLER_HISTORY_MAX: 0

    I confirm i successfully upgraded to helm and tiller 2.12.3 with --history-max=20

    I still see all the configmaps for previous releases (more than 20) and also the environment variable is still same
    Environment:
    TILLER_HISTORY_MAX: 0

  10. 27Bslash6 commented on Feb 15, 2019

    @27Bslash6

    See #4543 (comment) for a workaround until #3454 is merged

  11. bacongobbler commented on Oct 3, 2019

    @bacongobbler
    Member

    Closing this as we closed both #5867 and #3454, and as per the mailing list announcement, there's no plan to merge new features into Helm 2 once Helm 2.15 has been released.

    The good news is that there are several workarounds available, and because Tiller is not present in Helm 3, when you've upgraded you should no longer need this workaround.

    Closing as resolved via Helm 3. Thanks!

  12. Saumya2022 commented on Sep 14, 2022

    @Saumya2022

    Use below for helm 3

    helm upgrade [RELEASE] [CHART] --history-max=0  --description='revision_history max'

    Eg:
    helm upgrade eda29 /home/ec2-user/EDA2.9/Definitions/OtherTemplates/eric-act-cna-1.29.102-4.tgz --history-max=0  --description='revision_history max'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions