Skip to content

Flux HelmRelease Stalled: RetriesExceeded after a failed upgrade

GitOpstested on Flux v2.10.0 auf k3s v1.37.2+k3s1

A HelmRelease with remediation tries an upgrade several times and rolls back after each failure. Once the attempts are used up, Flux sets Stalled – the application runs the last good version, but Flux no longer tries this chart.

Symptom

kubectl -n notes-helm get hr notes \
  -o jsonpath='{range .status.conditions[*]}{.type}={.status} {.reason}{"\n"}{end}'
Stalled=True RetriesExceeded
Ready=False RollbackSucceeded
Drifted=False NoDriftDetected
Released=False UpgradeFailed
Remediated=True RollbackSucceeded

The conditions tell the whole story: upgrade failed, rollback succeeded, retries used up.

Diagnosis

Helm itself shows every attempt with its reason.

helm -n notes-helm history notes
REVISION	STATUS    	CHART                   	APP VERSION	DESCRIPTION
5       	superseded	notes-0.2.0+a8d3ddcf1a01	0.7.1      	Upgrade complete
6       	failed    	notes-0.3.0+9c0f25a69df7	0.9.99     	Upgrade "notes" failed: timeout waiting for: [Deployment/notes-helm/notes status: 'InProgress']
7       	superseded	notes-0.2.0+a8d3ddcf1a01	0.7.1      	Rollback to 5
8       	failed    	notes-0.3.0+9c0f25a69df7	0.9.99     	Upgrade "notes" failed: timeout waiting for: [Deployment/notes-helm/notes status: 'InProgress']
9       	deployed  	notes-0.2.0+a8d3ddcf1a01	0.7.1      	Rollback to 7

Causes

UpgradeFailedThe new chart never becomes healthy

Chart 0.3.0 sets an app version that does not exist. The upgrade runs into the timeout, and remediation rolls back to the last good revision.

RetriesExceededFlux gives up after the allowed retries

After two attempts and two rollbacks Flux sets Stalled: it no longer tries this chart. The application keeps running the old version, and the HelmRelease reports Ready=False.

Fix

Repair the chart, package it with a new version and push it. A new chart version resets the number of attempts, and the upgrade goes through.
helm package notes
helm push notes-0.3.1.tgz oci://localhost:30500/charts --plain-http
flux reconcile source oci notes-chart -n notes-helm
flux get helmreleases -n notes-helm
NAME 	REVISION          	SUSPENDED	READY	MESSAGE
notes	0.3.1+ed4815b6aafb	False    	True 	Helm upgrade succeeded for release notes-helm/notes.v10 with chart [email protected]+ed4815b6aafb

Don't: Repairing the release with a manual helm upgrade behind the HelmRelease's back. Flux detects the drift and fights it; the fix goes through the chart.

▶
Break it yourself and find it – free
Flux hands-on, day 7: Helm in depth – remediation, Helm tests, charts from Git and OCI.
Go to day 7 →

FAQ

Does the application still run when Stalled?

Yes, on the revision it was last rolled back to.

Do I have to delete the HelmRelease?

No. A new chart version is enough; Flux then starts the attempts from scratch.

Related error patterns

More