/k8s-toolkit:k9s-uifrom k8s-toolkit
k9s terminal UI for Kubernetes cluster management. Use when navigating clusters interactively, viewing logs in real-time, managing resources through terminal UI, or when user mentions k9s, terminal kubernetes, or interactive cluster management. Covers keyboard shortcuts, navigation, plugins, and configuration.
Ships in k8s-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
k9s provides a terminal-based UI for Kubernetes cluster management with real-time updates and keyboard-driven navigation.
k9s # Default kubeconfig
k9s --kubeconfig /path/to/config # Specific kubeconfig
k9s --context <context-name> # Specific context
k9s -n <namespace> # Start in namespace
k9s --readonly # Read-only mode (no modifications)
k9s --headless # No splash screen
k9s -c <resource> # Start with resource view (e.g., k9s -c pods)
k9s info # Show config/log locations
: prefix)| Command | Resource |
|---|---|
:pod / :po | Pods |
:deploy / :dp | Deployments |
:svc | Services |
:ns | Namespaces |
:node / :no | Nodes |
:rs | ReplicaSets |
:ds | DaemonSets |
:sts | StatefulSets |
:cm | ConfigMaps |
:secret / :sec | Secrets |
:pvc | PersistentVolumeClaims |
:pv | PersistentVolumes |
:ing | Ingresses |
:cj | CronJobs |
:job | Jobs |
:hpa | HorizontalPodAutoscalers |
:ep | Endpoints |
:sa | ServiceAccounts |
:ctx | Contexts |
:event / :ev | Events |
| Command | Action |
|---|---|
:aliases | Show all resource aliases |
:xray <resource> | Tree view of resource dependencies |
:pulse | Cluster health pulse view |
:popeye | Run cluster linter (if installed) |
:dir <path> | Browse saved files |
:q / :quit | Exit k9s |
| Key | Action |
|---|---|
? | Help / Show all shortcuts |
Esc | Back / Cancel / Exit mode |
Ctrl+a | Show all resources in namespace |
Ctrl+e | Toggle header |
Ctrl+w | Toggle wide columns |
Ctrl+s | Save resource YAML to file |
/ | Filter mode (regex search) |
0-9 | Quick namespace switch (favorites) |
| Key | Action |
|---|---|
l | View logs |
p | View previous container logs |
s | Shell into container |
a | Attach to container |
d | Describe |
y | View YAML |
e | Edit |
Ctrl+d | Delete |
Ctrl+k | Kill (force delete) |
f | Port forward |
Shift+f | Port forward menu |
| Key | Action |
|---|---|
s | Scale replicas |
r | Restart (rollout restart) |
d | Describe |
y | View YAML |
e | Edit |
Ctrl+l | Rollback |
| Key | Action |
|---|---|
Enter | Select / View details |
d | Describe |
y | View YAML |
e | Edit (opens $EDITOR) |
Ctrl+d | Delete (with confirmation) |
Ctrl+k | Kill (no confirmation) |
| Key | Sort By |
|---|---|
Shift+c | CPU |
Shift+m | Memory |
Shift+s | Status |
Shift+p | Namespace |
Shift+n | Name |
Shift+o | Node |
Shift+i | IP Address |
Shift+a | Age |
/ # Enter filter mode
/<term> # Filter by term (regex)
/-f <term> # Fuzzy search
/!<term> # Inverse filter (exclude)
/-l app=nginx # Filter by label
Esc # Clear filter
| Key/Command | Action |
|---|---|
:ns | List namespaces |
u | Mark as favorite (adds +) |
0-9 | Quick switch to favorite |
Enter | Switch to namespace |
Favorites appear in header for quick access.
Within pod logs (l):
| Key | Action |
|---|---|
0 | Tail all containers |
1-9 | Tail specific container |
w | Toggle wrap |
t | Toggle timestamps |
s | Toggle auto-scroll |
/ | Search in logs |
Ctrl+s | Save logs to file |
m | Mark current position |
Ctrl+b | Page up |
Ctrl+f | Page down |
After selecting a pod and pressing Shift+f:
:pf~/.config/k9s/config.yaml # Main config (Linux)
~/Library/Application Support/k9s/config.yaml # macOS
k9s:
refreshRate: 2 # Refresh interval (seconds)
maxConnRetry: 5
readOnly: false # Disable modifications
ui:
enableMouse: false
headless: false # Hide header
logoless: false # Hide logo
crumbsless: false # Hide breadcrumbs
logger:
tail: 1000 # Log lines to keep
buffer: 5000
sinceSeconds: -1 # -1 = all logs
~/.config/k9s/views.yaml:
k9s:
views:
v1/pods:
sortColumn: AGE:desc
columns:
- AGE
- NAMESPACE
- NAME
- STATUS
- RESTARTS
- CPU
- MEM
- IP
- NODE
~/.config/k9s/skins/<name>.yaml - Custom color schemes
Set in config: skin: <name>
Location: ~/.config/k9s/plugins.yaml
plugins:
stern:
shortCut: Shift+L
description: "Multi-pod logs with stern"
scopes:
- pods
command: stern
background: false
args:
- --context
- $CONTEXT
- --namespace
- $NAMESPACE
- $FILTER
Available variables: $NAMESPACE, $NAME, $CONTEXT, $CLUSTER, $USER, $COL-<column>
:deploy → find deploymentEnter to see podsd describe (check events)l for logsp for previous logs (if crashed)s to shell in for live debugging:deploy → select deploymentEnter to see ReplicaSets:pulse for overview:node → check node status:event → recent cluster eventsShift+c / Shift+m to sort by resource usage:pod → Shift+m (sort by memory)d describe for limits/requestsl logs for memory-related errors:po, :dp, :svc shortcutsuCtrl+s saves current view to /tmp/k9s-screens-<user>/:ctx to quickly switch clustersCtrl+w shows more columns (node, IP, etc.):xray deploy shows deployment→RS→pod treeWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub martin-janci/claude-marketplace --plugin k8s-toolkit6 skills in this plugin
/k8s-debugKubernetes troubleshooting and debugging workflows. Use when diagnosing pod failures, networking issues, resource problems, CrashLoopBackOff, ImagePullBackOff, pending pods, OOMKilled, or any cluster issues. Covers systematic debugging approaches and common failure patterns./k8s-deploy-autoKubernetes deployment automation workflows for CI/CD pipelines, GitOps, and scripted deployments. Use when automating k8s deployments, creating deployment scripts, integrating with GitHub Actions/GitLab CI, implementing rollout strategies, or setting up ArgoCD/Flux workflows./k8s-manifestsGenerate Kubernetes manifest templates for deployments, services, configmaps, secrets, ingress, and other resources. Use when creating new k8s resources, scaffolding applications, or needing YAML templates. Triggers on requests to create, generate, or scaffold kubernetes resources./k8s-opsKubernetes cluster operations, deployments, and troubleshooting. Use when deploying manifests, checking rollout status, monitoring pods, debugging failures, viewing logs, managing namespaces, or any kubectl operations. Triggers on mentions of kubernetes, k8s, kubectl, pods, deployments, services, namespaces, or cluster management./ssh-opsSSH operations for remote server management, tunneling, and proxy-based connections. Use when connecting to remote servers, running remote commands, setting up SSH tunnels, port forwarding, managing jump hosts/bastions, or executing kubectl/k9s on remote clusters. Triggers on SSH, remote, tunnel, bastion, jump host, port forward, or remote kubernetes access.Other plugins' skills for the same job