k9s commands
21 commands, each with a one-line explanation. Click a command to copy it, or its title for details.
Commands 21 shown
-
k9s -n <ns>Open k9s scoped to a single namespace
-
k9s --context <context>Open k9s using a specific kubeconfig context
-
# In k9s press ':' then type 'helmreleases' or 'kustomizations'Switch resource view: :pods, :svc, :helmreleases, :ns
-
# In k9s press '/' to filter by name patternType / and a pattern to filter the displayed resources
-
# In k9s press 'd' on selected resourceShow kubectl describe output for highlighted resource
-
# In k9s press 'l' on a podStream logs for the selected pod/container
-
# In k9s press 's' on a podOpen interactive shell inside the selected pod
-
# In k9s press Ctrl+D on selected resourceDelete the selected resource with confirmation
-
: deploy / app=myappFilter deployments by label selector in k9s
-
l (on selected pod)Press l on a pod to stream its logs
-
s (on selected pod)Press s on a pod to open a shell session
-
ctrl-d (on selected resource)Delete the selected Kubernetes resource
-
d (on selected resource)Show full kubectl describe output for selected resource
-
e (on selected resource)Open the resource YAML for editing in k9s
-
k9s --context my-clusterStart k9s connected to a specific kubeconfig context
-
:pod # or :svc :deployment :helmreleases :kustomizationsNavigate to a resource type by pressing ':' then typing the resource name
-
/pattern # Press '/' then type filter string, Esc to clearFilter listed resources by name pattern (press '/' to activate)
-
d # Press 'd' on selected resource to view describe outputDescribe selected resource (equivalent to kubectl describe)
-
l # Press 'l' on a pod; '0' for all containers, 'w' to wrapView pod logs (press 'l' on pod, '0' for all containers)
-
s # Press 's' on a pod to open a shell (uses first container)Open shell in pod container (press 's' on pod)
-
ctrl-d # Press Ctrl+D on selected resource, confirm with EnterDelete selected resource (press Ctrl+D, confirm with Enter)
no commands match — try a different search