# k9s

> Terminal UI for managing and observing Kubernetes clusters with real-time monitoring and resource navigation

Stars: 34.9k · Language: Go · License: Apache-2.0 · Categories: Dev Tools

- Repository: https://github.com/derailed/k9s
- Website: https://k9scli.io
- Page: https://www.trmn.sh/tools/k9s

## Install

- Homebrew: `brew install derailed/k9s/k9s`
- Snap: `snap install k9s --devmode`
- Go: `go install github.com/derailed/k9s@latest`

## Overview

K9s is a terminal-based user interface for interacting with Kubernetes clusters. It provides a live dashboard that continuously watches Kubernetes for changes and displays resource information in a navigable interface. Users can browse pods, deployments, services, and other Kubernetes resources through keyboard-driven commands without needing to memorize kubectl syntax.

The tool offers real-time log viewing, resource editing capabilities, and supports multiple cluster contexts. K9s includes features like resource filtering, sorting, and the ability to execute kubectl commands directly from the interface. It supports customization through skins, plugins, and hotkey configurations. The interface displays resource metrics, events, and allows drilling down into resource details through intuitive navigation.

K9s targets DevOps engineers, platform engineers, and developers who regularly manage Kubernetes workloads. It requires Kubernetes client version 1.28+ and works with existing kubeconfig files. The tool can run in read-only mode for production environments where cluster modifications should be restricted. It supports both local clusters and remote Kubernetes environments through standard kubectl authentication mechanisms.

### Installation

```bash
# via Homebrew
brew install derailed/k9s/k9s
```

```bash
# via Snap
snap install k9s --devmode
```

```bash
# via Go
go install github.com/derailed/k9s@latest
```

## Alternatives

- [k6](https://www.trmn.sh/tools/k6.md): JavaScript-based load testing tool for developers with HTTP, WebSockets, gRPC support and CI integration (Go, 32.1k stars)
- [trivy](https://www.trmn.sh/tools/trivy.md): Security scanner that detects vulnerabilities, secrets, and misconfigurations in containers, filesystems, git repos, VMs, and Kubernetes (Go, 38.9k stars)
- [TruffleHog](https://www.trmn.sh/tools/trufflehog.md): Secrets scanner that finds credentials in Git, filesystems, S3/GCS buckets and Docker images, classifies 800+ types, and verifies whether they are live. (Go, 28.8k stars)
- [asdf](https://www.trmn.sh/tools/asdf.md): Version manager that handles multiple language runtimes per project through plugins, using a single CLI and a .tool-versions file. (Go, 25.6k stars)
- [sops](https://www.trmn.sh/tools/sops.md): Editor for encrypted files supporting YAML, JSON, ENV, INI formats with AWS KMS, GCP KMS, Azure Key Vault, age, and PGP encryption (Go, 23.6k stars)

## Guides

- [Navigate a Kubernetes cluster with k9s](https://www.trmn.sh/guides/kubernetes-with-k9s): Browse pods, deployments and services with k9s: switch contexts, filter views, read logs, open a shell, port-forward, and run it read-only.

---

Canonical: https://www.trmn.sh/tools/k9s
