K8s terminal enhancements

I’m interacting with a large numbers of k8s clusters at $WORK and picked up some nice tools to make my life easier.

Firstly, get k9s. It’s a lovely tool for terminal-lovers. It has a nice vi-style interface with tab-completion, so you’d just have to something like :namespaces to see the equivalent of kubectl get ns.

For navigating through a cluster and exploring, this is a lot better than other GUIs like lens.

Secondly, get krew which is a plugin manager for kubectl. I installed these plugins to start with:

  • ctx – Easily switch between contexts. Integrates out of the box with fzf so it’s pretty sweet
  • ns – Same, for switching namespaces rapidly
  • tail – Tails across all pods in a service, among other things
  • tree – shows the hierarchy of resources (like Service -> Endpoint) in a tree

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 )

Twitter picture

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

Facebook photo

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

Connecting to %s