8b1feaba3151d4cf138c9902c5e4c97669df5955
Stability hardening for churn/scale (ROADMAP 3.2-3.4). 3.2 Bounded delta drain: the main loop drained every available delta each cycle, so a 10k initial-list flood could run before input/render was serviced. Cap at DELTA_MAX_PER_CYCLE (4096); the bounded channel back-pressures producers so nothing is lost and the remainder drains next cycle — input stays responsive. 3.3 Log fan-out cap: a Deployment/ReplicaSet log selection opened one stream per replica pod x container (hundreds of follow connections for a large deployment). Cap multi-pod selections at LOG_MAX_STREAMS (50) via capped_multi_pod_selection; the scope label notes "N of M streams, capped". 3.4 Watcher ceiling/auth: assessed, no change needed. Watcher count is already bounded by the warm-context policy (active + warm_contexts only); 401/token expiry on watch streams is handled by kube auth refresh on reconnect plus the existing bounded backoff. A redundant cap would risk dropping the active context's essential watchers. Validation: fmt, check, test (75 passed / 4 ignored), release build all green. Bench: no data-plane regression (sync 2.05s, RSS 64.7MB). 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
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: pods, deployments, replicasets, statefulsets, daemonsets, services, ingresses, configmaps, secrets, jobs, cronjobs, pvc/pv, nodes, namespaces, events, serviceaccounts, roles/rolebindings/clusterroles/clusterrolebindings, networkpolicies, hpa, pdb
- 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%