Community post originally published on Dev.to by Sunny Bhambhani

Introduction
k9s is a terminal based GUI to manage any Kubernetes(k8s) cluster. Using this single utility, we can manage, traverse, watch all our Kubernetes objects.

More information around k9s can be found here: https://k9scli.io/

We will dive a bit into k9s and see how it can help us in our day-to-day life, how we can get started, etc.

Features
Before we go into the example on how it can help, what it can do for us, let’s see some of its features, it has a ton of features, but we will focus on the ones which can help us in our day-to-day activities:

Installation

Download the latest version of k9s binary, you can use the same URL/version if required or get the latest version released and update below URL accordingly.

For latest version, refer: https://github.com/derailed/k9s/releases

$ wget https://github.com/derailed/k9s/releases/download/v0.32.7/k9s_linux_amd64.deb

Install it using apt package manager.

$ sudo apt install ./k9s_linux_amd64.deb

Once done it will get the k9s binary installed here: /usr/bin/k9s.

HOWTO

Launch k9s

$ k9s

Once k9s is launched you will be presented with a beautiful layout with lots of options.

k9s dashboard

Navigate between Kubernetes objects
Navigating is pretty easy; it is more or less like vi or vim.

k9s textarea

Pods management

k9s pods management
k9s delete pods
k9s shell
k9s describe pod
k9s get yaml manifest
k9s logs
k9s portforward1
k9s portforward2
k9s sanitize1

Just press z, you will be asked “if you are sure”, type in “Yes Please!” and the job is done.

k9s sanitize2

XRAY
Xray gives you a great detail in terms of co-relation between k8s objects, it basically provides a tree like structure.

k8s xray

Pulses
Pulses give a great dashboard to see what exactly is happening in your cluster, what all objects are there, health of your objects, etc?

NOTE: Make sure metrics-server is installed and running in the cluster otherwise you won’t see proper results. In my case it was not installed, therefore it was just stating blank results.

k9s pulses1

After installing metrics-server and launching pulses it shows an awesome dashboard.

k9s pulses2

References:

Feel free add your thoughts, Happy learning 🙂