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+orCtrl-orCtrl0 | Zoom in / out / reset |
| CtrlTorCtrlW | New tab / close tab |
| CtrlTaborCtrlShiftTaborCtrlShift]orCtrlShift[ | 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) |
| Ctrl? | Show or hide the agent panel |
| CtrlC | Copy selected text or the selected rows |
| Keys | Action |
|---|
| JorKorUporDown | Move |
| GGorShiftGorHomeorEnd | First / last |
| CtrlForCtrlBorPageDownorPageUp | Page down / up |
| ShiftJorShiftKorShiftDownorShiftUp | Extend the selection |
| 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 |
| ShiftA | Ask the agent about the selection (also in log views) |
| Keys | Action |
|---|
| UporDownorJorK | Move |
| RightorL | Expand |
| LeftorH | Collapse |
| EnterorSpace | Open |
| Keys | Action |
|---|
| CtrlS | Favorite or unfavorite the highlighted namespace |
Some views bind plain keys while they have focus. Like the others, they do not fire while a text field is focused.
| Keys | Action |
|---|
| / | Focus the filter in Applications, Security Center and Flux views, and the search in the Helm Charts tab |
| L | Applications: open the logs of the selected application |
| 1or2or3 | Security Center: Images / Resources / Roles. Available in the release after 0.6.0. |
| RorI | Cost: refresh / include idle cost. Available in the release after 0.6.0. |
| JorK | Move in the Helm Charts tab |
There is no key for the local terminal. Use Terminal: Open Local Shell for This Cluster or List: Export CSV from the palette.
Shortcuts for logs, the YAML editor, the terminal, the file browser, alerts, network flows, operators, 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) |