Terminal user interface for Kubernetes API management with resource CRUD, logs, shell access, and port forwarding
b4n is a terminal user interface (TUI) for the Kubernetes API, built with Rust using kube-rs and ratatui crates. It provides a k9s-inspired interface for viewing, filtering, and managing Kubernetes resources directly from the terminal. The tool supports complete CRUD operations on Kubernetes resources, along with the ability to view events, logs, and open shell sessions or attach to containers.
The TUI includes advanced filtering capabilities with namespace, name, annotation, and label prefixes that can be combined using logical operators. Users can enable port forwarding for containers, copy YAML configurations and logs to clipboard, and decode secrets. The interface supports mouse interaction across all views and includes configurable key bindings.
Developers and DevOps engineers working with Kubernetes clusters will find b4n useful for day-to-day cluster management tasks. The tool requires a Nerd Font for proper display and stores configuration, themes, and history in ~/.b4n directory. It supports context-specific settings and customizable themes for different environments.
# via Build from source
git clone https://github.com/fioletoven/b4n.git && cd b4n && cargo build --release
