Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

uninstall: Release not loaded: new: release: not found, chart deployed using helm 3

I have both helm 2 and helm 3 installed in my localhost. I have created a new chart using helm2

sanket@Admins-MacBook-Pro poc % helm create new
Creating new

created a chart 'new ' using helm version 2. Now I have deployed the chart using helm version 3

sanket@Admins-MacBook-Pro poc % helm3 install new new --namespace test 
NAME: new
LAST DEPLOYED: Thu Apr 23 17:56:03 2020
NAMESPACE: test
STATUS: deployed
REVISION: 1
NOTES:
1. Get the application URL by running these commands:
  export POD_NAME=$(kubectl get pods --namespace test -l "app.kubernetes.io/name=new,app.kubernetes.io/instance=new" -o jsonpath="{.items[0].metadata.name}")
  echo "Visit http://127.0.0.1:8080 to use your application"
  kubectl port-forward $POD_NAME 8080:80

Now when I try to delete the 'new' release it shows :-

sanket@Admins-MacBook-Pro poc % helm3 delete new 
Error: uninstall: Release not loaded: new: release: not found

any idea how to resolve this issue .

like image 758
Sanket Singh Avatar asked Apr 23 '20 12:04

Sanket Singh


People also ask

How do you delete a failed helm release?

Procedure. If you need to uninstall the deployed release, run the delete command on the Helm command line. The command removes all the Kubernetes components that are associated with the chart and deletes the release.

How do I fix failed helm chart?

You just need to update the last secret related to your release. In it, there is a label called status. Change its value to deployed, then reuse your "helm upgrade --install" command and it will works !


1 Answers

By default, helm3 only shows default namespace releases.
Do the following to get your release and delete it.

# Get all releases
helm ls --all-namespaces
# OR
helm ls -A

# Delete release
helm uninstall release_name -n release_namespace
like image 196
Tinkaal Gogoi Avatar answered Nov 16 '22 03:11

Tinkaal Gogoi