Power tools

YAML Viewer

Every resource detail view has a YAML tab that loads the live manifest from the cluster.

What you get

  • Live fetch - the YAML is pulled fresh when you open the tab, not from the cached watch event
  • Syntax highlighting - keys, strings, numbers, booleans, nulls, comments, indentation guides
  • Inline search - ⌘F focuses the search bar; ↑ / ↓ to navigate matches
  • Tab switcher - toggle between Live (current state) and Last Applied (the kubectl.kubernetes.io/last-applied-configuration annotation, when present)

The Last Applied view is useful for diffing what’s running vs what was last kubectl apply’d.

Which tab opens first

When a resource carries a Last Applied annotation, the YAML tab opens on Last Applied - it’s easier to read because it’s the manifest you submitted, without the status, defaults and bookkeeping fields the server injects. Resources without that annotation (controller-created objects, kubectl create, server-side apply, many operators) open on Live.

Last Applied reflects the last kubectl apply, so it can be older than Live if something was changed another way - the Diff pill makes any difference obvious. You can switch tabs at any time, and your choice sticks for that resource.

Prefer to always start on Live? Turn off Settings ▸ Display ▸ YAML ▸ “Open on Last Applied when available”.

Diff

When a Last Applied annotation exists, a Diff pill sits immediately to the right of the Last Applied tab. Click it to swap the YAML view for a colour-coded diff:

  • Green rows are present in Live but missing from Last Applied (additions)
  • Red rows are present in Last Applied but missing from Live (removals)
  • Context rows render in neutral grey on both sides

Each row shows the line number from both sides (old / new), so you can correlate with what kubectl diff would print. The summary bar at the top shows +N / -N totals - or Identical with a green check when the two are the same.

Clicking Live or Last Applied swaps back to the regular YAML viewer. Long lines extend right with horizontal scrolling rather than wrapping, so indentation stays readable.

Copy

The Copy button in the header copies the full YAML to the clipboard. Selection works too - drag-select any region and ⌘C.

Refresh

The YAML tab re-fetches whenever the underlying resource updates in the watch stream. You’ll always see a current snapshot.

Why not edit?

Kubius is read-only for YAML by design. To apply changes, copy the YAML out, edit in your favourite editor, and use kubectl apply -f or kubectl edit.

The exceptions are targeted actions that produce specific PATCHes through the UI: Restart on a Deployment, Scale on a Deployment, and Apply Recommendations on the Right-Sizing page.