When running some upgrades on our test cluster, I was getting errors like these in Helm:

$ helm list
Error: incompatible versions client[v2.17.0] server[v2.16.9]

What it tries to tell us is that there is a mismatch between our local Helm install and the Helm Tiller component which is deployed in the cluster. To fix it, you need to update teh Tiller component in the cluster by using this command:

$ helm init --upgrade
$HELM_HOME has been configured at /Users/pclaerhout/.helm.

Tiller (the Helm server-side component) has been updated to ghcr.io/helm/tiller:v2.17.0 .

You can check the versions by using the version command:

$ helm version
Client: &version.Version{SemVer:"v2.17.0", GitCommit:"a690bad98af45b015bd3da1a41f6218b1a451dbe", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.17.0", GitCommit:"a690bad98af45b015bd3da1a41f6218b1a451dbe", GitTreeState:"clean"}

I was also getting warnings about the repo which is outdated:

$ helm version
WARNING: "kubernetes-charts.storage.googleapis.com" is deprecated for "stable" and will be deleted Nov. 13, 2020.
WARNING: You should switch to "https://charts.helm.sh/stable"
Client: &version.Version{SemVer:"v2.17.0", GitCommit:"a690bad98af45b015bd3da1a41f6218b1a451dbe", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.16.9", GitCommit:"8ad7037828e5a0fca1009dabe290130da6368e39", GitTreeState:"clean"}

Due to recent changes, the repository is now located at a different place. You can update it as follows:

Helm v3

$ helm repo add stable https://charts.helm.sh/stable --force-update

Helm v2

$ helm repo rm stable
$ helm repo add stable https://charts.helm.sh/stable

You can list the repositories you have available:

$ helm repo list
NAME        URL
local       http://127.0.0.1:8879/charts 
jetstack    https://charts.jetstack.io   
stable      https://charts.helm.sh/stable

Don't forget to run the update command to refresh the local cache:

$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Skip local chart repository
...Successfully got an update from the "jetstack" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete.

Related Posts

  • Installing Helm on your Kubernetes cluster
  • Stern 1.13.0, templates and line-endings
  • My favourite Kubernetes client: Lens
  • Setting up and using an NFS share in Kubernetes
  • Using Docker private repos in Kubernetes