Terminal user interface for managing Kubernetes clusters using Rust and ratatui
b4n is a terminal user interface (TUI) for interacting with Kubernetes clusters, built with Rust using the kube-rs and ratatui crates. It provides a k9s-inspired interface for viewing and managing Kubernetes resources directly from the terminal. Users can perform CRUD operations on resources, view events, access container logs, open shell sessions in containers, and enable port forwarding.
The tool supports comprehensive resource management with features like filtering using operators (and &, or |, negation !), copying YAML/logs to clipboard, and decoding secrets. It includes a command palette accessible via : or > commands, customizable key bindings, and mouse support that can be toggled during runtime. The interface displays resources in sortable columns and provides context-aware actions based on the selected resource type.
b4n stores configuration in ~/.b4n/ including themes, logs, and history files. It supports custom themes, context-specific header colors, command aliases, and maintains search/filter history across sessions. The tool requires a Nerd Font for proper symbol display and integrates with standard kubectl configurations for cluster access.
# via Build from source
git clone https://github.com/fioletoven/b4n.git && cd b4n && cargo build --release
