Skip to content
Navigate

Navigate

pock8s keeps three values on every screen: the cluster, the namespace and the kind. You can change each of them in two taps from anywhere, or type all three at once in the command palette.

On a phone: the context dock

At the bottom of the screen, where your thumb is, the dock shows from left to right:

  • Home, the list of your clusters,
  • the cluster chip with the cluster’s code and an environment colour band; a lock marks a read-only cluster,
  • the kind chip with the short name, for example po or deploy,
  • the namespace chip,
  • the command button :, which opens the palette.

Kind before namespace is the order of the palette and of k9s, as in :deploy shop.

Tap a chip to open its picker. The picker lists the previous value, your favourites, recent values and then all of them, with a search field at the bottom. Tap the star of a row to make it a favourite. In the namespace picker you can also type a name that the list does not show.

Long-press a chip to go straight back to its previous value.

On medium windows, such as a foldable or a phone in landscape, the dock stays and the list and the detail sit side by side.

On a tablet: rail and breadcrumb

On large windows a rail on the left holds Home, the command button, your clusters and the pinned kinds. A cluster in the rail is one tap away. A breadcrumb on top shows cluster › namespace › kind and the levels you drilled into; tap a part to change it. The command field in the top bar opens the palette (Ctrl K).

The layout follows the window size, not the device. Split screen and resizing switch between the dock and the rail, and keep your place.

Tablet layout: rail with Home, command button, clusters PRD, STG, LAB and kinds; breadcrumb with prod-eu-1, payments and deploy; the cluster list
Rail and breadcrumb on a tablet

Command palette

Open the palette with the : button, or with : or Ctrl K (Cmd K) on a hardware keyboard. The grammar follows k9s command mode:

<kind-or-alias> [namespace | -A] [@cluster] [/filter | -l selector]

Kinds and their short names come from the cluster’s API discovery, so CRD short names work as in kubectl. When a short name belongs to kinds of several API groups, the palette asks which one you mean; the core group always wins, so po and svc cannot be taken over. The qualified name plural.group always works.

Examples

TypeTo
polist pods in the current namespace
deploy kube-systemlist deployments in kube-system
deploy -Alist deployments in all namespaces
po @homelablist pods on the cluster named or coded homelab
po /crashlist pods whose rows contain “crash”
po /!Runninglist pods whose rows do not contain “Running”
po -l app=apilist pods with the label app=api
/crashfilter the list on screen
ns shopswitch to namespace shop
ns -switch back to the previous namespace
ns -Aswitch to all namespaces
ctx homelabswitch to cluster homelab
ctx -switch back to the previous cluster
ns or ctxopen the namespace or cluster picker
logs, yaml, describethe logs, YAML or overview of the object on screen
homeopen Home
importadd a cluster
apiplain text: find objects named api

Write verbs such as scale, restart or delete are recognised, but in this release the palette says they are not available: pock8s 0.1.3 only reads. sh and pf arrive in a later release.

On a touch screen a row of tokens above the field inserts @, ns, -A, / and -l. With an empty line the palette shows your pinned and recent commands. Tap the star of a suggestion to pin it.

Completion

The palette completes the word under the caret by its place in the line:

  • the first word completes kinds and their aliases: dep becomes deployments,
  • the word after a kind, or after ns, completes namespaces of the target cluster,
  • a word starting with @, or the word after ctx, completes clusters by name or code,
  • after a namespace, an empty word offers the parts still missing: @, / and -l.

Namespaces match without regard to case: prefix first, then substring, then the typed letters in order, as in k9s. If the cluster does not let you list namespaces, the palette offers the ones it knows (from the kubeconfig, your favourites and recent use), and a typed name still works.

Every suggestion row reacts the same way:

  • Tap (or Enter) acts: a kind opens its list, a namespace runs the line with it, a cluster switches to it.
  • Long-press, the row’s arrow, Tab, or → while grey ghost text shows, completes: the word goes into the field with a space, and the palette stays open with the next suggestions.

Example: type dep, long-press deployments (or press Tab), type kub, tap kube-system. Deployments in kube-system open. Enter on deploy kub does the same: the best match is the top hit.

Palette with the line deploy kub, ghost text e-system, and namespace suggestions with an insert arrow on each row
Namespace completion with ghost text

Keyboard

With a hardware keyboard, outside text fields:

KeyDoes
:open the palette
/open the palette with /, to filter the list
0all namespaces
llogs of the object on screen
Escback
Ctrl K or Cmd Kopen the palette
Ctrl or Cmd with 1 to 9switch to the first to ninth cluster

In the palette:

KeyDoes
Enterrun the line or the highlighted row
↑ ↓move through the rows
Tabcomplete
→complete, while ghost text shows
Escclose

Drill down

A tap on a row’s body goes one level down, as Enter does in k9s. The info icon at the end of the row opens the detail. See Browse resources.

System back goes up one level.