`helm init` says tiller is already on cluster but it's not?

9/12/2019
vagrant@ubuntu-xenial:~$ helm init 
$HELM_HOME has been configured at /home/vagrant/.helm.
Warning: Tiller is already installed in the cluster.
(Use --client-only to suppress this message, or --upgrade to upgrade Tiller to the current version.)
vagrant@ubuntu-xenial:~$ helm ls
Error: could not find tiller

How can I diagnose this further?

Here are the currently running pods in kube-system:

vagrant@ubuntu-xenial:~$ kubectl get pods -n kube-system
NAME                                      READY   STATUS      RESTARTS   AGE
canal-dlfzg                               2/2     Running     2          72d
canal-kxp4s                               2/2     Running     0          29d
canal-lkkbq                               2/2     Running     2          72d
coredns-86bc4b7c96-xwq4d                  1/1     Running     2          49d
coredns-autoscaler-5d5d49b8ff-l6cxq       1/1     Running     0          49d
metrics-server-58bd5dd8d7-tbj7j           1/1     Running     1          72d
rke-coredns-addon-deploy-job-h4c4q        0/1     Completed   0          49d
rke-ingress-controller-deploy-job-mj82v   0/1     Completed   0          49d
rke-metrics-addon-deploy-job-tggx5        0/1     Completed   0          72d
rke-network-plugin-deploy-job-jzswv       0/1     Completed   0          72d
-- Chris Stryczynski
kubernetes
kubernetes-helm

1 Answer

9/12/2019

The issue was with the deployment / service account not being present.

vagrant@ubuntu-xenial:~$ kubectl get deployment tiller-deploy --namespace kube-system
NAME            READY   UP-TO-DATE   AVAILABLE   AGE
tiller-deploy   0/1     0            0           24h


vagrant@ubuntu-xenial:~$ kubectl get events --all-namespaces
kube-system     4m52s       Warning   FailedCreate    replicaset/tiller-deploy-7f4d76c4b6                 Error creating: pods "tiller-deploy-7f4d76c4b6-" is forbidden: error looking up service account kube-system/tiller: serviceaccount "tiller" not found

I deleted the deployment and ran helm init once again which then worked:

kubectl delete deployment tiller-deploy --namespace kube-system
helm init
-- Chris Stryczynski
Source: StackOverflow