You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Set --history-max on a already deployed cluster #3414
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.
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)
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
@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
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
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.
Activity
[-]Set History max on a already deployed cluster[/-][+]Set --history-max on a already deployed cluster[/+]davidchua commentedon Jan 30, 2018
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 showsTILLER_HISTORY_MAXenv var set on the deployment with the correct value.But when doing a
kubectl log <tiller_pod>, it showsMax history per release is 0. Doing a describe on the deployment also shows that theTILLER_HISTORY_MAXis missing.To fix, I had to manually edit the
tiller-deploymanifest to add the ENV VAR and it restarts with the correctMax history per release.bacongobbler commentedon Feb 2, 2018
If anyone wants to fix this, it should be an easy change here to apply the
--history-maxoption to the manifest when--upgradeis supplied.mattclegg commentedon Feb 5, 2018
@bacongobbler I've attempted to fix this; #3454
andor44 commentedon Feb 7, 2018
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)
fejta-bot commentedon May 8, 2018
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
jgiles commentedon May 25, 2018
@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).
Nowaker commentedon Aug 27, 2018
Can this be reopened? CC @bacongobbler
pc-rshetty commentedon Feb 4, 2019
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
27Bslash6 commentedon Feb 15, 2019
See #4543 (comment) for a workaround until #3454 is merged
bacongobbler commentedon Oct 3, 2019
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!
Saumya2022 commentedon Sep 14, 2022
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'