The complete default keymap and the k9s preset.
Mod is ⌘ on macOS and Ctrl elsewhere. Single-character shortcuts do not fire while a text field has focus. Rebind or unbind any key in the keymap section of settings. View-specific shortcuts are also documented on each feature's page.
| Keys | Action |
|---|
| CtrlK | Toggle the command palette |
| CtrlShiftP | Actions palette |
| CtrlP | Go to object |
| CtrlShiftN | New window |
| CtrlShiftW | Close window |
| CtrlQ | Quit |
| Ctrl, | Open settings |
| CtrlBorCtrlRorCtrlJ | Toggle sidebar / details dock / bottom dock |
| Ctrl=orCtrl-orCtrl0 | Zoom in / out / reset |
| CtrlTorCtrlW | New tab / close tab |
| CtrlTaborCtrlShiftTab | Next / previous tab |
| Ctrl\orCtrlShift\ | Split right / down |
| ShiftEsc | Zoom pane |
| Ctrl[orCtrl] | Back / forward |
| Ctrl` | Show the Terminal panel |
| CtrlAltO | Open the last port-forward in the browser |
| CtrlN | New resource (YAML) |
| Keys | Action |
|---|
| JorKorUporDown | Move |
| GGorShiftG | First / last |
| EnterorShiftEnter | Open / details |
| CtrlEnterorAltEnter | Open in new tab / split |
| Space | Mark a row |
| CtrlA | Select all |
| / | Filter |
| : | Resource palette |
| CtrlW | Wide columns |
| ShiftO | Go to reference |
| Keys | Action |
|---|
| D | Describe |
| E | Edit YAML |
| CtrlD | Delete… |
| CtrlK | Kill (Pod) |
| ShiftS | Scale… |
| R | Rollout restart |
| U | Rollout undo… |
| P | Pause or resume a Deployment |
| CorShiftC | Cordon / uncordon |
| ShiftD | Drain… (Node) or debug container… (Pod) |
| TorShiftT | Trigger a CronJob / suspend or resume it |
| YorShiftY | Copy name / YAML |
| L | Logs |
| SorAltS | Shell / shell in an editor tab |
| A | Attach |
| F | Browse files |
| ShiftForAltShiftF | Port-forward… / first port |
| W | Web view |
| Keys | Action |
|---|
| UporDownorJorK | Move |
| RightorL | Expand |
| LeftorH | Collapse |
| EnterorSpace | Open |
Shortcuts for logs, the YAML editor, the terminal, the file browser, alerts, network flows, operators and Helm, cluster updates, Argo CD and the kubeconfig editor are on their pages.
Set keymap.preset to k9s to layer these on top of the default keymap:
| Keys | Action |
|---|
| ? | Open actions |
| 0 | Show all namespaces |
| [or- | Back |
| ] | Forward |
| Esc | Back |
| CtrlU | Page up |
| : | Palette (on the sidebar tree) |