K9s is a utility that provides a terminal UI to interact with your Kubernetes clusters.
To install it we need to download the latest release from GitHub.
wget https://github.com/derailed/k9s/releases/download/v0.50.6/k9s_linux_amd64.deb
Once we've downloaded the package compatible with our system, we can install it.
dpkg -i k9s_linux_amd64.deb
Now we've installed K9s, but it doesn't know how to operate our K8s cluster, so we should export the K8s cluster configuration.
kubectl config view --raw > $HOME/.kube/config
Now we've finished the K9s installation and we're ready to start using it.