Kubernetes Terminal Dashboard k9s

Prashant Lakhera
2 min readFeb 2, 2021

--

To read the complete blog

As per official documentation

K9s is a terminal based UI to interact with your Kubernetes clusters. K9s is an opensource project and is written in GO language.The way it works it continiously monitor your kubernetes cluster for any changes and provides a shortcut command to interact with kubernetes resources.

Installing

Installation of K9s is pretty straightforward and binaries for various distribution are available in the release page.

# Download the binaries(In this use case Linux)
wget https://github.com/derailed/k9s/releases/download/v0.24.2/k9s_Linux_x86_64.tar.gz
# Move it to the desired path
sudo cp k9s /usr/local/bin
#Change the permission
sudo chmod +x /usr/local/bin/k9s

Start using k9s

To start using k9s execute k9s command on your console. It will use the standard kubeconfig file(~/.kube/config) same as kubectl.

k9s

As you can see this is showing default pod running in your system and in default namespace. This is equivalent of

kubectl get pod
  • In order to see all the pod in all namespaces (press 0). This is equivalent of
kubectl get pod -A
  • If you are looking for specific pod for e.g: kube-proxy there is search mode to do that. Type / followed the resource you are search(/kube-proxy)
  • Similarly if you want to perform search based on labels, type -l followed by the name of the label(-l app=nginx)

--

--

Prashant Lakhera
Prashant Lakhera

Written by Prashant Lakhera

AWS Community Builder, Ex-Redhat, Author, Blogger, YouTuber, RHCA, RHCDS, RHCE, Docker Certified,4XAWS, CCNA, MCP, Certified Jenkins, Terraform Certified, 1XGCP

No responses yet