You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

求助:Helm升级失败提示已发布的ws-dev实例名称仍在使用无法重复利用

Fixing "UPGRADE FAILED: a release named ws-dev is in use" in Helm v2.11.0

I’ve run into this exact error dozens of times with older Helm v2 setups—let’s break down what’s going on and get you back on track quickly.

Why This Happens

In Helm v2, this error typically crops up when the ws-dev release is stuck in an abnormal state (like failed, pending, or partially deleted) and Tiller (Helm’s server-side component) hasn’t properly cleaned up its metadata. Even though Helm v2 is supposed to allow upgrading existing releases, corrupted release state can block this process.

Step-by-Step Fixes

1. Check the Release’s Current State

First, confirm what shape ws-dev is in:

helm status ws-dev

Also, pull up its revision history to see if there’s a working version you can roll back to:

helm history ws-dev

2. Roll Back to a Healthy Revision

If there’s a successful previous revision listed, roll back to it to reset the release’s state:

helm rollback ws-dev <revision-number>

Replace <revision-number> with the valid revision ID from the helm history output (usually the last one marked as SUCCESS).

3. Purge the Corrupted Release (If Rollback Fails)

If the release is completely broken and rollback doesn’t work, fully erase it from Tiller’s records:

helm delete --purge ws-dev

The --purge flag is non-negotiable here for Helm v2—it wipes all traces of the release, including its configuration and history, so you can start fresh.

4. Re-Run the Upgrade/Install

Once the release is cleaned up, use the --install flag to handle both upgrade and install scenarios automatically:

helm upgrade --install ws-dev <path-to-your-chart>

This flag tells Helm to either upgrade an existing release or install a new one if it doesn’t exist, avoiding the "name in use" error entirely.

5. Verify Tiller is Functioning

Sometimes the issue comes from a misbehaving Tiller pod. Check its status:

kubectl get pods -n kube-system | grep tiller

If it’s not running, restart it by deleting the pod (Kubernetes will recreate it automatically):

kubectl delete pod <tiller-pod-name> -n kube-system

Quick Note: Upgrade to Helm v3 if You Can

Just a heads-up—Helm v2 reached end-of-life in November 2020 and is no longer maintained. Helm v3 removes Tiller entirely, which eliminates most state-related headaches like this one. If you have the bandwidth, planning an upgrade to v3 will save you from similar issues down the line.

内容的提问来源于stack exchange,提问作者dev sharma

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.06 06:52:56