0

I am trying to run "helm version" command in the jenkinsx but it fails with the following error.

Error:

helm version
Client: &version.Version{SemVer:"v2.14.3", GitCommit:"0e7f3b6637f7af8fcfddb3d2941fcc7cbebb0085", GitTreeState:"clean"}
Error: could not find tiller

The helm is working in the cluster where jenkinsx is installed but fails only in jenkinsx and I am not sure how to resolve this issue inside jenkinsx

Any suggestions would be appreciated

Bhavani Prasad
  • 1,079
  • 1
  • 9
  • 26

2 Answers2

0

This issue is related to your Helm Tiller installation, not really jenkinsx itself. There are two way to solve it: easy and hard.

The easy way is to install Helm 3, it doesn't use Tiller anymore. So, you'll not encounter this issue.

The hard way is to check why your Tiller is not running correctly. There can be multiple reasons for that. Most probably, it was not initialized, because you didn't have enough permissions to install it in your Kubernetes cluster (check this blog for the solution the commands to execute). If it was initialized, but you still cannot access it, then you need to check the logs of the Tiller to check it's up and running.

Rafał Leszko
  • 4,939
  • 10
  • 19
0

try helm version --client to avoid needing tiller. Jenkins X defaults to not installing tiller as its a massive security issue: https://jenkins-x.io/blog/2018/10/03/helm-without-tiller/

James Strachan
  • 9,168
  • 34
  • 31
  • Actually I need to delete all the resources of a helm release using "helm delete --purge ". Please let me know how to do this – Bhavani Prasad Jan 31 '20 at 10:10