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 .
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.
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 !
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With