Skip to main content

k9s

A terminal dashboard for Kubernetes. Navigate and manage your cluster without typing kubectl commands.

Launchโ€‹

k9s # connect to current context
k9s -n staging # open in a specific namespace
k9s --context my-cluster # specific cluster
k9s --readonly # view-only mode (safe for prod browsing)

KeyAction
:podGo to Pods view
:deployGo to Deployments
:svcGo to Services
:nsGo to Namespaces
:secretGo to Secrets
:cmGo to ConfigMaps
:ingGo to Ingresses
:nodeGo to Nodes
:helmGo to Helm releases
:ctxSwitch cluster context

Type : then the resource name and hit Enter to navigate.


Actions on a Selected Resourceโ€‹

KeyAction
lLogs
dDescribe
eEdit (opens in $EDITOR)
sShell / exec into container
ctrl+dDelete
ctrl+kKill (force delete)
yYAML view

Logsโ€‹

Press l on any Pod to open logs.

Inside the log view:

KeyAction
fToggle follow (tail -f)
/Filter/search logs
0Toggle timestamps
wToggle line wrap
EscGo back

Filtering & Searchingโ€‹

KeyAction
/Filter the current list (type to search)
EscClear filter

Example: press / then type error to filter pods with "error" in the name.


Namespace Switchingโ€‹

Press 0 to show all namespaces, or :ns to pick one.

You can also press ctrl+a to toggle between your current namespace and all namespaces.


Port Forwardโ€‹

Select a Pod and press shift+f โ†’ enter local port and container port โ†’ k9s manages the forward in the background.


Benchmarking / Resource Usageโ€‹

KeyAction
ctrl+eToggle resource usage (CPU/mem)

Tipsโ€‹

  • ? anywhere shows the help menu with all shortcuts for the current view
  • ctrl+c or q exits
  • k9s remembers your last context and namespace between sessions
  • Use --readonly when browsing production โ€” prevents accidental deletes