* feat(ui): per-kind table columns for non-pod resources Non-pod views collapsed every resource to a single loose "Summary" string (label count / service type / "-"). Replace it with meaningful, fixed-width, kubectl-style columns per kind, rendered after the universal Namespace/Name/Status/Age: - deploy UP-TO-DATE/AVAILABLE, rs DESIRED/CURRENT/READY, sts READY, ds DESIRED/READY/AVAIL - svc TYPE/CLUSTER-IP/PORTS, ing CLASS/HOSTS/ADDRESS - job COMPLETIONS/DURATION, cronjob SCHEDULE/SUSPEND/ACTIVE - cm DATA, secret TYPE/DATA, sa SECRETS - node ROLES/VERSION - pvc VOLUME/CAPACITY/ACCESS/STORAGECLASS, pv adds RECLAIM/CLAIM - hpa REFERENCE/MINPODS/MAXPODS/REPLICAS, pdb MIN-AVAIL/MAX-UNAVAIL/ALLOWED ResourceKind::extra_columns() is the single source of truth for header labels and widths; extract_columns() in the provider emits the matching row values. A contract test asserts the two stay in lockstep for all 24 kinds. Entity model: summary: String -> columns: Vec<String>. Pods now carry an empty vec, dropping the previously-unused per-pod "node=" string on the 10k-pod hot path. Filtering and :dump/copy span all columns; kinds without distinctive columns render just the four universal ones. Tests: contract count check, deployment/service/pvc extraction, non-pod render snapshot (kind headers replace generic Summary). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(ui): richer ServiceAccount and RoleBinding columns ServiceAccounts showed only a SECRETS count (often 0 on k8s ≥1.24); RoleBindings/ClusterRoleBindings had no kind-specific columns at all (empty fallback). Add meaningful columns: - ServiceAccounts: SECRETS, PULL-SECRETS (imagePullSecrets count) - RoleBindings / ClusterRoleBindings: ROLE (roleRef kind/name, e.g. ClusterRole/view) and SUBJECTS (abbreviated kind:name list, e.g. sa:build,u:alice) Test: rolebinding role/subjects extraction; the all-kinds column-count contract test covers the new headers. 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.1 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: select namespace in namespace view; otherwise open described: 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 order
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
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
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