Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check reason for Helm install failure

I wanted to bring up zookeeper using helm install ., but it says Error: release <servicename> failed: services "zookeeper" already exists. I don't see anything if I execute helm listtoo. Before installing the service, I checked using helm list if it already exists, and it doesn't.

How to check the reason for failure?

like image 892
Bitswazsky Avatar asked Oct 18 '18 11:10

Bitswazsky


2 Answers

I think that the simplest solution is to add the --debug flag for the installation command:

helm install chart my-chart --debug

Or if you prefer:

helm  upgrade --install chart my-chart --debug

It displays all the resources which are created one by one and also related errors which occured during installation.

like image 62
RtmY Avatar answered Oct 17 '22 06:10

RtmY


Do helm list --all - Helm List

Then if you have a conflicting release then probably need to delete the release again with the --purge flag

But it could possibly be that you have a Service object named zookeeper that isn't part of a helm release or that hasn't been cleaned up. You can check with kubectl get services (or add the --all-namespaces flag if it might be in a different namespace from your context). If so then you'll want to delete resources directly with kubectl delete

like image 42
Ryan Dawson Avatar answered Oct 17 '22 06:10

Ryan Dawson