🚀 K9s Practical Guide – From Installation to Usage
K9s is a terminal-based UI for managing Kubernetes clusters. It provides a more intuitive and interactive way to explore resources, view logs, and execute commands compared to rawkubectl.
1. 🔧 Installation
Linux / macOS
Windows
✅ After installation, verify:
2. ⚙️ Setup
- K9s uses your existing kubeconfig (usually
~/.kube/config). - Ensure you can access your cluster:
- Then simply run:
3. 🧭 Navigation
4. 📑 Common Workflows
🔍 View Pods
📜 View Pod Logs
- Select pod → press
l - For specific container → press
0-9to switch
🐚 Exec into Pod
- Select pod → press
s - Opens interactive shell inside container
📦 Manage Deployments
- Navigate to Deployments
- Press
dto describe - Press
eto edit (opens YAML in editor)
5. 🎨 Customization
-
Config stored in:
-
You can set:
- Theme (skins)
- Default namespace
- Keybindings
6. 📌 Tips & Shortcuts
:→ Command mode?→ Show help & shortcutsShift+g→ Jump to bottom of listCtrl+a→ View all resourcesShift+c→ Switch cluster context
7. ✅ Summary
K9s makes Kubernetes management faster and more intuitive:- No need to remember complex
kubectlcommands - Easy navigation through pods, deployments, logs
- Supports exec, editing, scaling, and context switching
- Customizable interface for personal workflow
🔥 With K9s, you’ll save tons of time navigating and debugging your Kubernetes clusters.
