Helm: Error: incompatible versions client[v2.9.1] server[v2.8.2]


antique armor black and white chrome
Photo by Mikes Photos on Pexels.com

Working with helm on my mac against a Kubernetes cluster in Oracle Cloud as get an error:

MacBook-Pro-de-javi:wishlist javiermugueta$ helm install -n wishlist-chart -f values.yaml .
Error: incompatible versions client[v2.9.1] server[v2.8.2]
MacBook-Pro-de-javi:wishlist javiermugueta$ brew info kubernetes-helm
kubernetes-helm: stable 2.9.1 (bottled), HEAD
The Kubernetes package manager
https://helm.sh/
/usr/local/Cellar/kubernetes-helm/2.9.1 (50 files, 66.2MB) *
Poured from bottle on 2018-08-04 at 18:55:56
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/kubernetes-helm.rb
==> Dependencies
Build: mercurial ✘, go ✘, glide ✘
==> Options
--HEAD
Install HEAD version
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d

The following worked for me:

MacBook-Pro-de-javi:wishlist javiermugueta$ helm init --upgrade
Creating /Users/javiermugueta/.helm
Creating /Users/javiermugueta/.helm/repository
Creating /Users/javiermugueta/.helm/repository/cache
Creating /Users/javiermugueta/.helm/repository/local
Creating /Users/javiermugueta/.helm/plugins
Creating /Users/javiermugueta/.helm/starters
Creating /Users/javiermugueta/.helm/cache/archive
Creating /Users/javiermugueta/.helm/repository/repositories.yaml
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com
Adding local repo with URL: http://127.0.0.1:8879/charts
$HELM_HOME has been configured at /Users/javiermugueta/.helm.

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

 

Now it works!

MacBook-Pro-de-javi:wishlist javiermugueta$ helm install -n wishlist-chart -f values.yaml .
NAME: wishlist-chart
LAST DEPLOYED: Sat Aug 4 21:25:46 2018
NAMESPACE: default
STATUS: DEPLOYED

RESOURCES:
==> v1/Service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
wishlist-chart NodePort 10.96.84.197 <none> 8080:31124/TCP,8082:32204/TCP,8081:31772/TCP 1s

==> v1/Deployment
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
wishlist-chart 3 3 3 0 1s

==> v1/Pod(related)
NAME READY STATUS RESTARTS AGE
wishlist-chart-69796586bb-5frnz 0/3 ContainerCreating 0 1s
wishlist-chart-69796586bb-d9gn8 0/3 ContainerCreating 0 1s
wishlist-chart-69796586bb-z8l67 0/3 ContainerCreating 0 1s


NOTES:
1. Get the application URL by running these commands:
export NODE_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services wishlist-chart)
export NODE_IP=$(kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT

Enjoy 😉

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.