microk8s.helm returns Eror: could not find tiller

Created on 1 Oct 2019  路  10Comments  路  Source: ubuntu/microk8s

I've installed microk8s on ubuntu 19.04 with:

snap install microk8s --classic --edge

I then enable helm:

microk8s.enable helm

which produces:

Enabling Helm
Helm is enabled

I then issue:

microk8s.helm version

which produces:

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

For some reason, tiller does not install properly on v2.14.3.

inspection-report-20191001_135328.tar.gz

Most helpful comment

The following command worked quite well for me

microk8s.helm init --override spec.selector.matchLabels.'name'='tiller',spec.selector.matchLabels.'app'='helm' --output yaml | sed 's@apiVersion: extensions/v1beta1@apiVersion: apps/v1@' | microk8s.kubectl apply -f -

All 10 comments

Enabling helm in microk8s does not explicitly install tiller.

Also Kubernetes 1.16 disabled the deprecated apis. I think we'll have to update the helm version bundled as soon as 2.15.0 is ready.

https://github.com/helm/helm/issues/6374

Sorry about that. Here's the additional detail that I forgot:

$ microk8s.helm init
$HELM_HOME has been configured at /home/watson/.helm.
Error: error installing: the server could not find the requested resource

Of course, this is after the helm enable.

@davidthewatson yeah that's due to the disabled api in kubernetes 1.16.
Thanks

While we wait for a helm release [1] we can:

  • use MicroK8s v1.15 with sudo snap install microk8s --classic --channel=1.15/stable
  • go through the issue [2] and try any workarounds described there.

Apologies for any inconvenience.

[1] https://github.com/helm/helm/releases
[2] helm/helm#6374

Related to:
https://github.com/ubuntu/microk8s/issues/70#issuecomment-537832749

The following command worked quite well for me

microk8s.helm init --override spec.selector.matchLabels.'name'='tiller',spec.selector.matchLabels.'app'='helm' --output yaml | sed 's@apiVersion: extensions/v1beta1@apiVersion: apps/v1@' | microk8s.kubectl apply -f -

The following command worked quite well for me

microk8s.helm init --override spec.selector.matchLabels.'name'='tiller',spec.selector.matchLabels.'app'='helm' --output yaml | sed 's@apiVersion: extensions/v1beta1@apiVersion: apps/v1@' | microk8s.kubectl apply -f -

This allows the creation of Tiller's deployment and service but when I tried microk8s.helm version again I got the same Error: cannot connect to Tiller.

This can be closed now. Helm 2.15.1 is now merged.
@ktsakalozos

Indeed, the latest helm is on edge and should reach stable with the next patch release (1.16.3)

Having this issue, fresh install today:

~$ microk8s.helm version
Client: &version.Version{SemVer:"v2.16.0", GitCommit:"e13bc94621d4ef666270cfbe734aaabf342a49bb", GitTreeState:"clean"}
Error: could not find tiller

@zbyte64 can you check tiller pod? Also after enabling helm, did you run microk8s.helm init?

Was this page helpful?
0 / 5 - 0 ratings