kns is a very small shellscript that utilizes fzf to switch between Kubernetes namespaces blazing fast. 🔥
To install kns you can just run this command:
curl https://raw.githubusercontent.com/blendle/kns/master/bin/kns -o /usr/local/bin/kns && chmod +x $_
Or use our homebrew tap:
brew tap blendle/blendle
brew install kns
That's it! Done! 🙌
For those of you that deal with a lot of clusters regularly, there's also ktx
to switch
between contexts. It does not connect to any api-server, but only displays information from
kubectl
configuration. It is included in the homebrew package (see above) or you can manually install it too:
curl https://raw.githubusercontent.com/blendle/kns/master/bin/ktx -o /usr/local/bin/ktx && chmod +x $_