Files
krust/docs/operator-guide.md
T
Erfan Yousefi a2b07f1e70 docs: split operator/contributor guides and sharpen README product scope
- 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
2026-03-08 14:15:00 +01:00

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 tabs
  • j / k (or arrows): move selection and scroll
  • Enter: select namespace in namespace view; otherwise open describe
  • d: describe selected resource
  • ctrl+d: delete (guarded)
  • esc: clear active filter/search prompt

Logs and Runtime Inspect

  • l: open logs pane
  • s: tail toggle
  • p: pause/resume stream
  • S: source selector
  • c: 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 shortcut
  • n / N: next/previous match in detail/log panes
  • :: command mode
  • tab in command mode: autocomplete
  • ctrl+w in command/filter mode: delete previous word

Common command mode entries:

  • :ctx contexts
  • :ns namespaces
  • :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/bottom
  • ctrl+u / ctrl+d: half-page up/down
  • y: 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

  • --readonly blocks 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
  • krust suppresses retry storms for forbidden watches

Slow startup:

  • avoid --all-contexts unless needed
  • reduce warm_contexts

Clipboard issues:

  • tries pbcopy/wl-copy/xclip/xsel, then OSC52 fallback

Auth mismatch vs shell:

  • run from shell session where kubectl is already working
  • ensure exec auth dependencies are available in PATH