An open API service indexing awesome lists of open source software.

https://github.com/lywwkka-ad/k4s

Terminal UI for K3s cluster management with SSH node access - inspired by k9s
https://github.com/lywwkka-ad/k4s

cli crictl devops go golang k3s kubectl kubernetes ssh terminal tui

Last synced: about 2 months ago
JSON representation

Terminal UI for K3s cluster management with SSH node access - inspired by k9s

Awesome Lists containing this project

README

          

# k4s

A lightweight Terminal UI for K3s/Kubernetes cluster management, built on [Charm](https://charm.sh/).

![k4s demo](https://img.shields.io/badge/version-0.3.0-blue)
![Go Version](https://img.shields.io/badge/go-1.21+-00ADD8?logo=go)
![License](https://img.shields.io/badge/license-MIT-green)

## Screenshots


Kubeconfig selector


Kubeconfig selector — choose between multiple clusters


Namespaces view


Namespaces view with sidebar navigation


Pods view


Pods view with real-time CPU/Memory metrics


Log viewer


Streaming log viewer with timestamps and search


Events view


Cluster events with follow mode and warning filtering

## Features

- **Real-time Monitoring** - Live pods, deployments, services, events with auto-refresh
- **Resource Metrics** - CPU/Memory usage (requires metrics-server)
- **Multi-Pod Log Tailing** - Stream logs from multiple pods simultaneously with `Shift+L`
- **Streaming Logs** - Follow logs with search & highlighting
- **Crush-Inspired UI** - Purple-accented theme with sidebar layout and transparent overlays
- **SSH Integration** - Connect to nodes and inspect containers via crictl
- **Keyboard-driven** - Vim-style navigation

## Quick Start

```bash
# From source
git clone https://github.com/LywwKkA-aD/k4s.git
cd k4s && make install

# Or download from releases
# https://github.com/LywwKkA-aD/k4s/releases
```

Configuration is stored at `~/.k4s/config.yaml` (auto-created on first run).

## Keybindings

| Key | Action |
|-----|--------|
| `?` | Help |
| `1-5` | Switch views (Namespaces/Pods/Deployments/Services/Events) |
| `9` | SSH Hosts |
| `j/k` | Navigate |
| `Enter` | Select |
| `l` | Logs |
| `L` | Multi-pod logs |
| `q` | Quit |

See full documentation in [docs/](docs/).

## Contributing

Contributions welcome! Please check our [issues](https://github.com/LywwKkA-aD/k4s/issues) or open a new one.

## License

MIT License - see [LICENSE](LICENSE)

---

[![Stargazers repo roster for @LywwKkA-aD/k4s](https://reporoster.com/stars/LywwKkA-aD/k4s)](https://github.com/LywwKkA-aD/k4s/stargazers)