# K9s

> k9s terminal UI for Kubernetes. Use for K8s management.

- Skill: `majiayu000/k9s` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/k9s`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/k9s/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/k9s

---


# K9s

K9s is a terminal UI (TUI) for Kubernetes. It is faster than clicking in a web dashboard and morediscoverable than raw `kubectl`.

## When to Use

- **Cluster Management**: Viewing Pods, Logs, and YAML in real-time.
- **Debugging**: Shell into a pod (`s`), view logs (`l`), delete pod (`Ctrl+d`).
- **Safety**: Read-only mode prevents accidental deletions in Prod.

## Core Concepts

### Views

Navigate by resource type (`:pods`, `:svc`, `:deploy`).

### XRay

`:xray RESOURCE` creates a dependency tree view (e.g., Service -> Pod -> Node).

### Pulses

`:pulse` gives a high-level health dashboard.

## Best Practices (2025)

**Do**:

- **Use Aliases**: Define aliases for commonly used CRDs.
- **Use Plugins**: Extend K9s with custom scripts (e.g., `kubectl neat` to clean YAML).
- **Context Awareness**: Use skins to color-code Prod (Red) vs Dev (Blue).

**Don't**:

- **Don't rely solely on it**: Know your `kubectl` commands for scripting/automation.

## References

- [K9s Documentation](https://k9scli.io/)

