* feat(ui): Enter drill-down from owners to their pods Enter on a Deployment/ReplicaSet/StatefulSet/DaemonSet now opens a Pods view scoped to that owner's pods; Enter on a Node shows the pods scheduled on it. Closes the top gap from the k9s readonly parity audit (4.7). - Live filter, not a snapshot: a DrillFilter on ViewRequest is applied in the projector, so rollouts/new pods appear/disappear in real time. Deployment ownership is resolved transitively through the pod's ReplicaSet (reusing the owner chain the log fan-in relies on); other workloads and Node match directly (ownerReferences / scheduled node). - The Pods title shows `[DRILL] <owner> → Pods`; `esc` pops back to the owner's list (krust has no view stack). Drill clears on any kind/namespace change. - Leaf kinds keep the previous behavior (Enter → describe; namespace → its resources). svc→endpoints drill deferred (needs the service selector, not currently extracted) — noted in the audit/ROADMAP. Tests: projector owner-chain/node filtering, and an Enter→drill render integration test. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(ui): resolve deployment drill-down showing zero pods The deployment→pod chain resolves transitively through each pod's ReplicaSet, but ReplicaSets were only watched in the Logs pane — during a drill the active kind is Pods (Table pane), so the RS were never loaded and every pod was filtered out (zero pods). Two-part fix: - Watch ReplicaSets for the drilled namespace while a Deployment drill is active, so the chain resolves authoritatively from store state. - Add a name-convention fallback in DrillFilter: a deployment's RS is always named `<deploy>-<pod-template-hash>` (hash has no `-`), so pods match immediately even before the RS watch populates or if RS are RBAC-denied. The no-`-` check keeps `web` from matching `web-api`'s ReplicaSets. Test: projector deployment drill now covers a pod whose RS is absent from the store (name-fallback path). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
7.8 KiB
krust Operator Guide
This guide is for cluster operators and SREs using krust day-to-day.
What krust is optimized for
- low keypress-to-render latency
- high resource counts and multi-context sessions
- keyboard-first Kubernetes workflows
- predictable behavior under RBAC/API/auth failures
Run Modes
Default mode:
krust
Target a context:
krust --context <context-name>
Target a namespace:
krust --namespace <namespace>
Read-only mode:
krust --readonly
Use custom kubeconfig:
krust --kubeconfig <path>
Warm all contexts at startup (heavier):
krust --all-contexts
Core Navigation
tab/shift+tab: switch context tabsj/k(or arrows): move selection (table) / scroll (detail, logs)g/G: top / bottom (in detail panes useggfor top)Enter: drill down where it makes sense — namespace → its resources; Deployment/ReplicaSet/ StatefulSet/DaemonSet → their pods; Node → pods scheduled on it. Other kinds open describe. In a drill-down the title shows[DRILL] <owner> → Pods;escpops back to the owner list.d: describe selected resource (toggles back to table)v: view YAML;t: back to table;E: events pane (this resource's events);l: logsn: cycle namespace;s: cycle sort column;r: reverse sort orderH: show/hide Helm release secrets (Secrets view; hidden by default)
The active sort column is marked in the table header with a direction arrow (Name ↑ ascending,
Status ↓ descending), and the top status bar shows [SORT] <col><arrow>. You can also set sort
explicitly with :sort <name|namespace|status|age> [asc|desc].
ctrl+d: delete (guarded, table only);ctrl+k: kill (delete)?: toggle help (table) / search (detail panes)esc: clear filter (table) / close view (detail) / cancel pending action
All of the above are remappable via keymap.toml; the on-screen help line reflects your active bindings.
Events
Press E on any resource (pod, deployment, node, …) to see its events — the ones whose
involvedObject is that resource — newest first (LAST / TYPE / REASON / COUNT / SOURCE / MESSAGE),
like the Events section of kubectl describe. Selecting an Event resource itself shows its manifest.
Resource Columns
Every table starts with the universal columns Namespace · Name · Status · Age. Beyond those,
each kind shows columns tailored to it (like kubectl get), e.g.:
- Deployments —
UP-TO-DATE,AVAILABLE - ReplicaSets —
DESIRED,CURRENT,READY - StatefulSets —
READY - DaemonSets —
DESIRED,READY,AVAIL - Services —
TYPE,CLUSTER-IP,PORTS - Ingresses —
CLASS,HOSTS,ADDRESS - Jobs —
COMPLETIONS,DURATION - CronJobs —
SCHEDULE,SUSPEND,ACTIVE - ConfigMaps —
DATA; Secrets —TYPE,DATA - ServiceAccounts —
SECRETS,PULL-SECRETS - RoleBindings / ClusterRoleBindings —
ROLE(e.g.ClusterRole/view),SUBJECTS(e.g.sa:build,u:alice) - Nodes —
ROLES,VERSION - PVCs —
VOLUME,CAPACITY,ACCESS,STORAGECLASS; PVs addRECLAIM,CLAIM - HPAs —
REFERENCE,MINPODS,MAXPODS,REPLICAS - PodDisruptionBudgets —
MIN-AVAIL,MAX-UNAVAIL,ALLOWED
Kinds without distinctive columns show just the four universal ones. Pods are special — see Metrics.
Filtering and :dump/copy operate over all visible columns.
Metrics
If the cluster has a metrics-server (metrics.k8s.io), krust shows live usage and right-sizing.
The Pods table splits this into six right-aligned, fixed-width columns — CPU CR CL then
MEM MR ML:
- CPU / MEM — actual usage (e.g.
1.50c,256Mi). - CR / MR — usage as a percentage of the CPU/memory request (the right-sizing signal: low = over-provisioned, ≥100 = under-requested). Turns yellow at ≥100%.
- CL / ML — usage as a percentage of the CPU/memory limit (the risk signal). Turns red at ≥90% (throttle/OOM risk).
So a pod showing CPU 1.50c, CR 150%, CL 75% is using 1.5 cores, 150% of its CPU request, and
75% of its CPU limit. Missing pieces (no request/limit, or no metrics) render as -. The Cluster
Pulse panel shows a [USE] row: cluster cpu/mem used vs allocatable + util%.
Without a metrics-server these degrade gracefully (columns show -, the table title notes
metrics-server n/a, and the pulse falls back to request/limit-based numbers).
Logs and Runtime Inspect
l: open logs panes: tail togglep: pause/resume streamS: source selectorc: container selector
Pod behavior:
- multi-container pods can stream from all containers
Controller behavior:
- deployment/replicaset selections can stream from all selected replica pods
Search and Command UX
/: filter in list/overlay panes, search in detail/log panes
Table filter syntax (in the / prompt or via :<kind> -l ...):
- plain text — case-insensitive substring over name/namespace/status/summary
!term— inverse (exclude matches)key=value/key==value/key!=value— label selector; comma-separate requirements (app=api,tier=backend), all must hold?: detail/search shortcutn/N: next/previous match in detail/log panes:: command modetabin command mode: autocompletectrl+win command/filter mode: delete previous word
Common command mode entries:
:ctxcontexts:nsnamespaces:po,:deploy,:svc,:ing,:cm,:sec, etc.:api [filter]list all API resources/CRDs discovered on the context:<resource>browse any discovered resource/CRD (e.g.:endpoints,:widgets);:<resource> <name>describes one:fmt yaml|json:edit [yaml|json]:sort <name|namespace|status|age> [asc|desc]set the table sort column/direction:helm [show|hide]toggle (or set) visibility of Helm release secrets in the Secrets list
Detail Pane Behavior
w: wrap toggle- left/right: horizontal scroll when wrap is off
gg/G: top/bottomctrl+u/ctrl+d: half-page up/downy: copy visible/current detail content
Detail supports:
- syntax highlighting for YAML/JSON
- vim-style in-pane search navigation
- current-match highlighting separate from other matches
Secrets
x: toggle decoded secret view when on a Secret- decoded view shows decoded values in YAML
- edit from decoded view re-encodes values to base64 on apply
- edit from raw describe expects base64 input
Helm release secrets (type: helm.sh/release.v1, named sh.helm.release.v1.<release>.v<n>) are
hidden by default to cut clutter. Press H (or run :helm) to toggle them; the Secrets table
title shows whether they're currently hidden or shown. :helm show / :helm hide set the state
explicitly. The toggle is per-context-tab.
Configuration
Paths:
~/.config/krust/config.toml~/.config/krust/keymap.toml
Example:
[runtime]
fps_limit = 60
delta_channel_capacity = 2048
warm_contexts = 1
warm_context_ttl_secs = 20
[ui]
theme = "default"
show_help = true
Defaults for initial context/namespace follow kubeconfig unless overridden by CLI flags.
Safety Model
--readonlyblocks mutating actions- delete/action flows are confirmation guarded
- RBAC/auth/network errors are surfaced in UI status messaging
Troubleshooting
403 warnings:
- expected when RBAC does not allow a resource scope
krustsuppresses retry storms for forbidden watches
Slow startup:
- avoid
--all-contextsunless needed - reduce
warm_contexts
Clipboard issues:
- tries
pbcopy/wl-copy/xclip/xsel, then OSC52 fallback
Auth mismatch vs shell:
- run from shell session where
kubectlis already working - ensure exec auth dependencies are available in PATH