TL;DR — Quick Summary
k9s is an interactive terminal UI for Kubernetes. Browse pods, logs, exec into containers, and manage resources — all without typing kubectl commands.
k9s gives you a real-time dashboard for Kubernetes. Instead of typing kubectl get pods -n default over and over, just open k9s and everything is right there — pods, logs, events, and shells.
Installation
# macOS
brew install derailed/k9s/k9s
# Arch Linux
sudo pacman -S k9s
# Snap
sudo snap install k9s
# Go install
go install github.com/derailed/k9s@latest
Key Commands
# Launch
k9s # Current context
k9s -n kube-system # Specific namespace
k9s --readonly # Read-only mode
k9s -c pods # Start on pods view
# Navigation
:pods # Switch to pods
:deploy # Deployments
:svc # Services
:ns # Namespaces
:ctx # Contexts (switch cluster)
:cj # CronJobs
:pv # Persistent Volumes
# Actions (on selected resource)
l # Logs
s # Shell/exec
d # Describe
e # Edit
Ctrl+k # Delete
y # YAML view
# Filtering
/pattern # Filter by name
0 # All namespaces
1 # Default namespace
Comparison
| Feature | k9s | kubectl | Lens | Rancher |
|---|---|---|---|---|
| Type | Terminal TUI | CLI | Desktop GUI | Web UI |
| Speed | Instant | Typing | App startup | Browser |
| Real-time | Yes | Manual refresh | Yes | Yes |
| Exec/shell | One key | Command | Click | Click |
| Customizable | Skins/hotkeys | Aliases | Plugins | Limited |
| Resource usage | Low (~30MB) | Minimal | Heavy | Heavy |
Summary
- k9s provides a terminal UI for Kubernetes — faster than kubectl for daily operations
- Real-time pod status, logs, events, and resource monitoring
- One-key actions: l (logs), s (shell), d (describe), e (edit), Ctrl+k (delete)
- Context switching, namespace filtering, and resource search built-in
- Low resource usage (~30MB) compared to desktop GUIs like Lens