I’ve been in a number of internal and external calls where tooling to help work with Kubernetes keeps coming up. I thought I would share some of these cool tools in case you weren’t aware of them.
- kubectx and kubens
Kubectx and Kubens
These tools are amazing at quickly switching context and namespaces while working with kubernetes. You can find k9s at https://github.com/ahmetb/kubectx or the author’s website https://ahmet.im/blog/kubectx/.
kubectx can show you the multiple contexts available, switch between them quickly, and create aliases.
kubens can show you the multiple namespaces available, switch between them quickly, and create aliases.
fzf is a different type of tool. This makes your other tools better. It works on a variety of platforms but what is allows you to do is get an interactive filter. kubectx and kubens will show the list and let you pick what you want instead of runnig multiple commands. You can leverage fzf to pick files to edit more quickly.
It works with lots of things, like vi.
If you work daily with Kubernetes you might already know about these tools. If you haven’t tried them, give them an install and play around.