Switch views
:<resource>
Open a resource view (:pod, :svc, :deploy)
Singular, plural, short name or alias all work.
:<resource> <namespace>
Open a view in a namespace
:pod /<text>
Pods filtered by text
Needs k9s 0.30.0 or newer.
:pod <key>=<val>,...
Pods matching labels
Needs k9s 0.30.0 or newer.
:pod @<context>
Pods in another context
Switches the current context too. 0.30.0+.
:ns
List and switch namespaces
:ctx
List and switch contexts
:ctx <name>
Switch straight to a context
:pulses / :pu
Cluster pulses overview
:xray <res> [ns]
Dependency tree (po, svc, dp, rs, sts, ds)
:popeye / :pop
Run the Popeye cluster sanitizer
:screendump / :sd
Browse saved screen dumps
Inspect and act
s
Shell into a container (pods)
a
Attach to a container (pods)
e
Edit the resource
Not available with --readonly.
Ctrl+D
Delete, with confirmation
Press Tab to reach OK, then Enter.
Ctrl+K
Kill now, no confirmation
Same as kubectl delete --now.
Shift+J
Jump to the owner
z
Show ReplicaSets (Deployment view)
Logs and workloads
w
Toggle line wrap (log view)
t
Toggle timestamps (log view)
f
Toggle fullscreen (log, YAML, details)
Shift+F
Port-forward (pod, service, container)
b
Benchmark a service or port-forward
r
Restart (Deployment, DaemonSet, StatefulSet)
Ctrl+L
Roll back a ReplicaSet
u
Cordon / uncordon a node