Installation
All you need to know to install k9s
K9s is available on Linux, macOS and Windows platforms. Binaries for Linux, Windows and Mac are available as tarballs in the release page.
MacOS
Homebrew
Via Homebrew for macOS or Linux
brew install derailed/k9s/k9s
MacPorts
Via MacPorts
sudo port install k9s
Linux
Snap
Via snap for Linux
snap install k9s --devmode
Arch
On Arch Linux
pacman -S k9s
OpenSUSE
On OpenSUSE Linux distribution
zypper install k9s
BSD
On FreeBSD
pkg install k9s
Windows
Winget
Winget for Windows
winget install k9s
Scoop
Scoop for Windows
scoop install k9s
Chocolatey
Chocolatey for Windows
choco install k9s
Generic
Go
Note: Installing via Go will install the dev version of the master branch! It is recommended to use another installation method.
go install github.com/derailed/k9s@latest
pkgx
pkgx for Linux and macOS
pkgx k9s
Webi
Webi for Linux and macOS…
curl -sS https://webinstall.dev/k9s | bash
…and Windows
curl.exe -A MS https://webinstall.dev/k9s | powershell
Docker Desktop Extension
As a Docker Desktop Extension (for the Docker Desktop built in Kubernetes Server)
docker extension install spurin/k9s-dd-extension:latest
Building From Source
K9s is currently using GO v1.22.X or above. In order to build K9s from source you must:
- Clone the repo derailed/k9s
- Build and run the executable
make build && ./execs/k9s
Docker
For a guide on Running k9s via Docker, see Docker