8 tips to incredibly boost the efficiency of command execution on Kubernetes using k9s

k9s —awesome text based graphical tool with powerful hotkey design

Gavin F.
7 min readDec 21, 2023

--

k9s — Kubernetes CLI (source: https://k9scli.io/)

Kubernetes (k8s) has become a key infrastructure for its powerful features that makes the service and resource management so much easier. The capabilities of auto-scaling, auto-healing and zero down-time deployment are fantastic.

Those who have experience on k8s spend considerable time on running kubectl commands.

For example, this command get all pods on app namespace

kubectl get pod -n app

Likewise, we need to run this command in order to get all services

kubectl get service -n app

Sometimes, we need to run the same command several times. Even though re-running the same command in the history could speed up a little bit, typing commands to retrieve k8s resources is still unavoidable.

We need a friendly user interface that saves us time from typing commands and presents information in a cohesive way.

k9s is a perfect tool which provides a text based user interface for k8s. It is not to replace kubectl, this tool supports quick navigation and operations on various objects in the cluster.

--

--

Gavin F.
Gavin F.

Written by Gavin F.

Decades experience in software development. Building software and researching technologies are my full-blown obsession.

No responses yet