2026-03-08 03:29:19 +01:00
|
|
|
# krust
|
2026-03-07 09:33:13 +01:00
|
|
|
|
2026-03-08 03:29:19 +01:00
|
|
|
[](https://github.com/ErfanY/krust/actions/workflows/ci.yml)
|
|
|
|
|
[](https://github.com/ErfanY/krust/actions/workflows/release.yml)
|
|
|
|
|
[](LICENSE)
|
|
|
|
|
[](https://kubernetes.io/)
|
2026-03-07 09:33:13 +01:00
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
`krust` is a latency-first Kubernetes terminal navigator for operators managing many clusters and high resource volume.
|
2026-03-07 09:33:13 +01:00
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
It focuses on fast navigation, inspect, logs, and safe actions, with high k9s command/keybinding compatibility for Kubernetes-native workflows.
|
2026-03-07 09:33:13 +01:00
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
## Goal and Approach
|
2026-03-07 09:33:13 +01:00
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
Goal:
|
|
|
|
|
- stay responsive for power users across many contexts and large object sets
|
|
|
|
|
- provide Kubernetes-native terminal workflows without plugin complexity
|
2026-03-07 09:33:13 +01:00
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
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
|
2026-03-08 03:29:19 +01:00
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
## Install
|
2026-03-08 03:29:19 +01:00
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
### Homebrew
|
2026-03-08 03:29:19 +01:00
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
```bash
|
|
|
|
|
brew tap ErfanY/krust
|
|
|
|
|
brew install krust
|
|
|
|
|
```
|
2026-03-08 03:29:19 +01:00
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
### Prebuilt binaries
|
2026-03-07 09:33:13 +01:00
|
|
|
|
|
|
|
|
```bash
|
2026-03-08 03:29:19 +01:00
|
|
|
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
|
2026-03-07 09:33:13 +01:00
|
|
|
```
|
|
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
### From source
|
2026-03-07 09:33:13 +01:00
|
|
|
|
2026-03-08 03:29:19 +01:00
|
|
|
```bash
|
|
|
|
|
cargo install --git https://github.com/ErfanY/krust.git --locked krust
|
|
|
|
|
```
|
|
|
|
|
|
2026-06-24 23:52:44 +02:00
|
|
|
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.
|
|
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
## Quick Start
|
2026-03-08 03:29:19 +01:00
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
krust
|
|
|
|
|
krust --context <context-name>
|
|
|
|
|
krust --namespace <namespace>
|
|
|
|
|
krust --readonly
|
|
|
|
|
```
|
|
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
## Compatibility
|
2026-03-08 03:29:19 +01:00
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
- OS: macOS, Linux
|
|
|
|
|
- Kubernetes: 1.33+
|
|
|
|
|
- Auth: kubeconfig + exec auth providers
|
2026-03-08 03:29:19 +01:00
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
## Documentation
|
2026-03-08 03:29:19 +01:00
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
- [Operator Guide](docs/operator-guide.md)
|
|
|
|
|
- [Contributor Guide](docs/contributor-guide.md)
|
|
|
|
|
- [Architecture](docs/architecture.md)
|
|
|
|
|
- [Performance Guide](docs/performance.md)
|
|
|
|
|
- [Contributing](CONTRIBUTING.md)
|
2026-03-08 03:29:19 +01:00
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
## Scope
|
2026-03-08 03:29:19 +01:00
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
Available now:
|
|
|
|
|
- Multi-context workflow with fast context switching and namespace scoping (`all` namespace supported)
|
2026-06-24 16:18:04 +02:00
|
|
|
- Kubernetes resource browser for curated kinds:
|
2026-03-08 14:14:07 +01:00
|
|
|
pods, deployments, replicasets, statefulsets, daemonsets, services, ingresses, configmaps, secrets, jobs, cronjobs, pvc/pv, nodes, namespaces, events, serviceaccounts, roles/rolebindings/clusterroles/clusterrolebindings, networkpolicies, hpa, pdb
|
2026-06-24 16:18:04 +02:00
|
|
|
- Dynamic discovery: list and describe **any** other resource or CRD on the cluster (read-only) via `:api` and `:<resource>`
|
2026-03-08 14:14:07 +01:00
|
|
|
- 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
|
2026-03-08 03:29:19 +01:00
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
Explicitly out of scope:
|
|
|
|
|
- Plugin subsystem
|
|
|
|
|
- Non-Kubernetes plugin commands
|
2026-03-08 03:29:19 +01:00
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
2026-03-08 14:14:07 +01:00
|
|
|
MIT. See [LICENSE](LICENSE).
|