Skip to content
stokaroPublic

About

Kubernetes Commander: a dual-pane TUI inspired by Midnight Commander and Far Manager. Browse and edit Kubernetes resources, inspect logs, events and metrics, compare manifests, and explore Helm releases from the terminal.

Topics

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

891 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes Commander (kc)

Build Status

An animated tour of kc with a caption per scene: the two panels, quick search, the cluster overview, diagnosis of broken objects, logs and more

kc is a two-panel Kubernetes TUI in the style of Midnight Commander. You browse contexts, namespaces, resource types and objects like folders and files, and the lists stay live through controller-runtime informers. The second panel shows what the first one points at: its YAML, Describe, logs, or CPU and memory use. Or it browses a context of its own, so staging and prod sit side by side. The changes kc makes itself, such as delete, scale or drain, ask first in a red dialog that names the context; F4 hands the object to kubectl edit, and your own commands ask when you give them confirm.

kc started as a fork of Kubernetes Commander by Stefan Schimanski and is developed independently; report issues here, not upstream. See NOTICE.

Screenshots

The dashboard (C-x g) of a namespace. In iTerm2 3.7+, kitty and Ghostty kc draws the charts as images, as here; other terminals get the same charts in text:

The full-screen dashboard of a namespace: the workloads with their pods and containers on the left, one with an OOMKilled container, CPU and memory charts drawn as images with a line per workload, the request and limit, and the Events of the last 15 minutes on a timeline

The cluster overview (M-i) with the cluster capacity in the Info panel:

The cluster overview with capacity, health, risks and activity checks, and the cluster capacity in the Info panel

A Deployment list next to the Describe of the selected Deployment:

Deployments in the left panel and kubectl describe of deployment web in the right panel

More in the screenshot catalog.

Install

brew install --cask stokaro/kc/kc

Or go install github.com/stokaro/kc/cmd/kc@latest (Go 1.27 or later), or an archive for Linux or macOS from the releases. Installing kc covers the checksums, the macOS quarantine attribute and building from source.

Quick start

kc                     # the current context of your kubeconfig
kc -n shop get pods    # start in the pods of namespace shop
kc dashboard           # the full-screen dashboard of the namespace
kc --readonly          # refuse every change to the cluster

kc reads your kubeconfig and never changes it. On a cluster that matters, start with --readonly, or set read-only contexts in the configuration.

Key Action
Enter Open the folder or object under the cursor
Tab Switch between the panels
C-s Quick search: type the start of a name
F3 / F4 View / edit the object (kubectl edit)
F8 Delete, after a confirmation that names the context
Insert Mark rows for an action on several objects
C-1 / C-2 Switch the left / right panel between List, Describe, Manifest, Logs and Info
M-i Cluster overview: what needs attention
C-x g Dashboard of the scope, node, workload or pod under the cursor
C-o The terminal under the panels
F9 Menu bar
F1 Help for what has focus
F10 Quit; asks first while port forwards, a node shell or a copy run

No fn, no Meta key? Esc then a digit works as the F-key (Esc 3 is F3), Esc then a letter as the M- key (Esc i is M-i), and every M- key and C-x chord has an entry in the F9 menus. Terminal setup covers macOS Option and fn, tmux, VS Code and GNOME Terminal.

F1 opens the help page of the dialog, panel mode or row in focus. The pages ship inside the binary; they are also readable here.

Documentation

  • Features: what kc does, with links to the help pages.
  • Key bindings: the keys of the panels and the main keys of the viewers; F1 in a viewer or dialog opens the help page with its keys.
  • Command line: kc get, kc logs, kc overview, kc dashboard, the scope flags, the files in ~/.kc and troubleshooting with the debug log.
  • Configuration: ~/.kc/config.yaml, custom columns, custom resource health, panel colors. config-default.yaml lists every setting with its default.
  • Custom commands: your own commands in the F2 menu.
  • Installing kc.
  • tui: the Midnight Commander style building blocks for Bubble Tea programs that kc is built on, as a Go module of their own.

Contributing

See CONTRIBUTING.md and AGENTS.md for the build and test commands and the conventions. kc is licensed under the Apache License 2.0.

About

Kubernetes Commander: a dual-pane TUI inspired by Midnight Commander and Far Manager. Browse and edit Kubernetes resources, inspect logs, events and metrics, compare manifests, and explore Helm releases from the terminal.

Topics

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages