Skip to content
Browse resources

Browse resources

pock8s lists every kind the cluster serves: built-in kinds and every CRD, also ones pock8s has never seen. It needs no code per kind.

Lists

A list comes from the server’s Table API, so its columns are the ones kubectl get shows, CRD printer columns included. Lists update live while you look at them.

  • Phones show two-line rows: a status glyph, the name, the main value such as the ready count, and below the status reason, restarts and age.
  • Tablets show the full table. Tap a column header to sort by it.

Every row has a status glyph with a word next to it. The six states are Ready, Progressing, Warning, Failed, Suspended and Unknown; each has its own shape, so the status never depends on colour alone.

Sort

On a phone the Sort control above the list sorts by name, age or status. Sort and filters are kept per kind and cluster, also after a restart.

Filter

Type into the filter field above the list:

FilterShows
textrows whose name or any cell matches text; case does not matter, and the text may be a regular expression
!textrows that do not match text
-l app=apiobjects with the label selector app=api, then press Enter

Two chips under the field narrow the list further:

  • Failing shows the failed rows. The chip shows their count.
  • Warnings shows rows with a warning or a failure.

Every active filter shows as a chip that you can remove. When filters hide rows, the list says how many.

You can also filter from the palette: po /crash, po -l app=api.

States

A list always says what it is doing. “Syncing”, “empty”, “nothing matches the filters”, “forbidden” and “unreachable” each look different. When the cluster cannot be reached, the list keeps the last known rows and says for how long the cluster has been unreachable. While a list loads, it shows placeholder rows in the shape of the real ones.

Rows

A row has two targets:

  • Tap the body to go one level down, as Enter does in k9s.
  • Tap the info icon at the end of the row to open the detail. On a tablet the detail opens next to the list.

Where a tap on the body leads:

KindLeads to
Deployment, StatefulSet, DaemonSet, ReplicaSet, Job, Service, ReplicationControllerits pods
CronJobits jobs
Podits containers
Nodethe pods on the node
Namespacesets the namespace
A CRD with a scale subresource and a selectorits pods
Every other kindthe detail; such rows have no info icon

Long-press a row (or right-click it) for its actions: YAML, Events, Logs, Copy name and Copy kubectl command. Write actions such as Restart, Scale, Edit and Delete are listed but disabled: this release is read-only.

Kinds you cannot list

pock8s never hides a kind silently. The kind picker shows the kinds your RBAC permissions let you list. Its last row counts the others, for example “12 kinds you cannot list”.

When a list is forbidden, the screen says so and names the permission you lack, with a button to copy the matching command for your cluster admin. RBAC checks in the app are only a convenience; the API server decides.

Detail

The detail of an object has these tabs:

  • Overview: health, metadata, the owners it belongs to, labels, annotations, conditions, finalizers, and spec and status as a foldable tree. Actions to go to the pods, containers or jobs, to open logs and to copy the name are at the top; write actions are shown disabled.
  • Containers (pods): every container, init and ephemeral ones included, with readiness and restarts. Each container opens its own logs.
  • Events: the events of the object, warnings marked, with count and last seen. The server keeps events for about an hour.
  • YAML: see below.

Long texts from the cluster, such as a condition message, an event or an annotation, show their first lines. When a text is cut off, Show all below it opens the whole text in place, and Show less folds it again.

Secret values are never shown in the overview: they read “hidden” with their length.

If the object is deleted while you look at it, the detail says so and keeps the last known state.

Deployment detail: Overview tab with Pods, Logs and Copy name, disabled write actions, metadata, conditions and labels
The overview of a deployment

YAML viewer

The YAML tab shows the object with syntax highlighting, line numbers and folding. You can search with next and previous match, collapse or expand everything, and copy the YAML.

managedFields are left out. Secret values and the last-applied-configuration annotation are masked as '***'.

Events

  • The Events tab of an object shows its events.
  • Events in a row’s long-press actions opens the same tab.
  • To see all events of a namespace, open the kind ev (events) like any other kind, for example ev in the palette.