Use Gitlab-installed Helm from CLI. Could not find tiller

4/5/2019

I've created a kubernetes cluster on AWS using Kops, and I've correctly configured the cluster on Gitlab.

I've installed Helm Tiller and Ingress from Gitlab's panel, but I now wish to uninstall the Ingress chart.

I'm not sure how to uninstall the ingress chart. What I'm tring now is configuring my Helm CLI to delete the ingress release, but I'm not getting the Helm CLI correctly configured. The Tiller stuff is being deployed at the gitlab-managed-apps, so I'm trying the following command:

$ helm init --tiller-namespace gitlab-managed-apps --service-account tiller --upgrade
HELM_HOME has been configured at C:\Users\danie\.helm.

Tiller (the Helm server-side component) has been upgraded to the current version.
Happy Helming!

But then when I'm trying to issue the helm ls command I'm getting the following error:

$ helm ls
Error: could not find tiller

But the service account exists on the namespace:

$ kubectl get serviceAccounts -n gitlab-managed-apps
NAME                    SECRETS   AGE
default                 1         23h
ingress-nginx-ingress   1         23h
tiller                  1         23h

Any ideas how to get the CLI correctly configured?

-- Daniel Ramos
gitlab
kubernetes
kubernetes-helm

2 Answers

4/20/2020

Try using Helm version 3 onward. Helm versions 1 and 2 are actually composed of two pieces – the Helm CLI, and Tiller, the Helm server-side component. It is important to note that Helm 3 removes the Tiller component, and thus is more secure

-- Datta
Source: StackOverflow

4/5/2019

you have installed tiller to a namespace that is not the default namespace. As per default the Helm CLI will assume tiller is installed in default and that this is the namespace you want to "get in touch with"

this can be fixed by using the tiller-namespace flag as for your example that'd be

helm list --tiller-namespace gitlab-managed-apps

-- Rick Rackow
Source: StackOverflow