Fix k9s invalid exec plugin by downgrading k9s (rebuild from source)

Elvis Ciotti
Jul 6, 2022

--

In case you have the latest k9s v0.25+ not connecting to the cluster, launch with--help to find the log path, read it, and if you see

exec plugin: invalid apiVersion “client.authentication.k8s.io/v1alpha1

try installing k9s version v0.24.15.

This worked on my M1 Pro Apple silicon CPU by rebuilding from the source

curl -L https://github.com/derailed/k9s/archive/refs/tags/v0.24.15.tar.gz > /tmp/k9s.tar.gz
cd /tmp
tar -xvzf k9s.tar.gz
cd k9s-0.24.15/
# brew install go
make build
sudo chmod +x execs/k9s
sudo mv execs/k9s /usr/local/bin/k9s
k9s info

Thanks for reading !

What to do next:
- Clap if useful
- Buy me a coffee
- Follow me for more
- Read my other articles below or from my profile
- Keep in touch on LinkedIn

--

--

Elvis Ciotti
Elvis Ciotti

Written by Elvis Ciotti

Software Contractor — Java, Spring, k8s, AWS, Javascript @ London - hire me at https://elvisciotti.github.io/

No responses yet