- rewrite README for operator-first onboarding with clear goal/approach intro - expand scope section with concrete supported resources and workflows - add docs/operator-guide.md for runtime usage, navigation, logs, secrets, and troubleshooting - add docs/contributor-guide.md for engineering standards, validation, and release responsibilities - simplify CONTRIBUTING.md into a concise entrypoint that links to the detailed contributor guide - remove docs/status.md and drop update-status job from release workflow
3.3 KiB
3.3 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 and scrollEnter: select namespace in namespace view; otherwise open described: describe selected resourcectrl+d: delete (guarded)esc: clear active filter/search prompt
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?: 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.:fmt yaml|json:edit [yaml|json]
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