K9s – Manage Your Kubernetes Clusters in Style
k9scli.io
k9scli.io
If a production bug happens and I need to quickly debug, not much is faster than:
- "k9s" (start the CLI)
- "/myservice" (search for the pod)
- "l" (open the logs)
- "/Exception" (search the logs)
Maybe the bug was a bad config file I need to manually edit:
- "<escape>" (close the log view)
- "s" (exec into the container)
K9s has almost completely replaced "kubectl" for me as well. And the dev team behind k9s is great too. We get a new patch about every week and a new feature every 2 weeks or so on average: https://github.com/derailed/k9s/releases
kubectl logs deployment/<whatever> | less
kubectl exec -it deployment/whatever shIt's like Norton/Midnight commander for Kubernetes.
And i love the K9 references!
I do have it aliased to k9s --readonly by default to protect me from myself.
I’ve found is super helpful figuring out why things aren’t working in pod, the visibility to effort ratio feels better to me than kubectl.
Disclaimer I work at vmware (but on a different team)
LazyKubectl: https://github.com/vs4vijay/lazykubectl (WIP)