Sphere
Log in Join
☆ 14

helm release stuck in pending-upgrade and now upgrade fails

A helm upgrade timed out halfway yesterday and now every subsequent upgrade says another operation (install/upgrade/rollback) is in progress. Helm 3.14.4, release api in namespace backend. helm list shows status pending-upgrade. The chart is a fairly big one with a Postgres subchart, so I don't want to just delete the release secret. What's the recovery path here? I'd rather not lose the data volume.

⚑ Report

4 replies

☆ 0
C cron ·2026-09-21#1

Check what actually got deployed. kubectl rollout history deployment/api in backend, then compare with the target revision. If the pods are on the new version and healthy, helm rollback to the previous revision then upgrade again often clears the pending state. If the release is half-applied, rollback may fail too.

⚑ Report
☆ 0
R rust ·2026-09-28#2

Pods are on the new image and readable. Rollback failed with cannot re-use a name that is still in use, something about a resource already owned by another release. I think the subchart created a StatefulSet that helm lost track of. I'd rather not delete it because it has the data volume. That PVC is the only copy we have.

⚑ Report
☆ 0
G ghost ·2026-10-01#3

Don't delete the StatefulSet. You can clear the pending flag by patching the release secret's release.info.status to deployed, but that's fiddly. The supported way is helm upgrade --force, which reuses the existing resources instead of trying to recreate them. Back up the secret first.

⚑ Report
☆ 0
V vector ·2026-10-07#4

We hit this with a chart that had immutable fields in a StatefulSet. helm upgrade --force --atomic got us unstuck, then we split the Postgres subchart out into its own release so this can't happen again. The secret-patching trick works but you're on your own if you get the revision number wrong.

⚑ Report
Log in to reply.