fce242df7c848ba7f26a2c7c1ad0f4e658bd772f
`:xray [namespace|all]` opens a live ownership graph, replacing the old stub and closing gap #3 from the k9s parity audit (4.7). Rather than a per-kind tree, it's a single namespace-rooted forest of the workload topology: ns/<name> ├─ deploy → rs → pod → container ├─ sts / ds → pod → container ├─ cronjob → job → pod ├─ job / bare rs → pod └─ standalone pods (no controller) `:xray` defaults to the current namespace; `:xray all` spans the cluster grouped by namespace. Rendering is a real tree, not indented text: box-drawing connectors (├──/└──/│), ▾/▸ expand markers, severity-colored per-node status, and a selectable cursor. Navigate j/k (+ g/G); →/← expand/collapse the node under the cursor, Enter toggles, esc closes. Collapse state is keyed by stable node id so it survives the per-frame rebuild. The graph rebuilds from store state every frame so it tracks the cluster live; opening it adds the workload kinds it draws to the active watch plan so it fills in within a moment. Large graphs truncate with `… N more` nodes (no silent caps). Cross-cutting relations (Service/PVC/ConfigMap/Node — non-ownership, multi-parent edges that don't fit a tree) are intentionally left to the Enter drill-down and describe views. Reuses the existing owner-chain helpers (the log fan-in's deployment/replicaset/pod key lookups). Tests: namespace-rooted tree structure + connectors + expand marker; collapse hides a subtree; arrow-key directed collapse/expand. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
krust
krust is a latency-first Kubernetes terminal navigator for operators managing many clusters and high resource volume.
It focuses on fast navigation, inspect, logs, and safe actions, with high k9s command/keybinding compatibility for Kubernetes-native workflows.
Goal and Approach
Goal:
- stay responsive for power users across many contexts and large object sets
- provide Kubernetes-native terminal workflows without plugin complexity
Approach:
- lazy scope activation instead of watch-everything startup
- bounded state/update pipelines to avoid UI jitter under churn
- keyboard-first interaction with high k9s compatibility
- explicit RBAC/auth error handling and guarded mutation paths
Install
Homebrew
brew tap ErfanY/krust
brew install krust
Prebuilt binaries
curl -L -o krust.tar.gz \
https://github.com/ErfanY/krust/releases/latest/download/krust-x86_64-unknown-linux-gnu.tar.gz
tar -xzf krust.tar.gz
sudo install krust-x86_64-unknown-linux-gnu/krust /usr/local/bin/krust
From source
cargo install --git https://github.com/ErfanY/krust.git --locked krust
For local development, make (no args) lists targets; make validate runs the full CI gate
(fmt/check/test/release build) and make package builds a release tarball.
Quick Start
krust
krust --context <context-name>
krust --namespace <namespace>
krust --readonly
Compatibility
- OS: macOS, Linux
- Kubernetes: 1.33+
- Auth: kubeconfig + exec auth providers
Documentation
Scope
Available now:
- Multi-context workflow with fast context switching and namespace scoping (
allnamespace supported) - Kubernetes resource browser for curated kinds: pods, deployments, replicasets, statefulsets, daemonsets, services, ingresses, configmaps, secrets, jobs, cronjobs, pvc/pv, nodes, namespaces, events, serviceaccounts, roles/rolebindings/clusterroles/clusterrolebindings, networkpolicies, hpa, pdb
- Dynamic discovery: list and describe any other resource or CRD on the cluster (read-only) via
:apiand:<resource> - Describe/detail pane with YAML/JSON toggle, syntax highlighting, vim-style search, and wrap/horizontal scroll modes
- Logs pane with stream, tail, pause, source filtering, container selection, and multi-pod fan-in for deployment/replicaset views
- Secret decode view in YAML, with edit/apply support and automatic re-encode on apply
- Guarded mutation flows (for example delete) plus read-only mode (
--readonly) - k9s-style command and keybinding compatibility for Kubernetes-native workflows (plugin commands excluded)
- Performance-oriented behavior for large clusters: lazy watch activation, bounded update pipelines, render invalidation, and RBAC-aware watch suppression
Explicitly out of scope:
- Plugin subsystem
- Non-Kubernetes plugin commands
License
MIT. See LICENSE.
Languages
Rust
97%
Shell
2.2%
Makefile
0.8%