km
is a thin wrapper for kubectl to enhance few features.
There are some short commands to set the cluster/namespace context, completion install and helper for logs.
Any other command will be proxied to kubectl so km command can be used in the same way as kubectl.
Check km -h
for all the available options.
- context change for the cluster and the namespace with short commands
- bash and zsh completion (kubectl completion is required), use
km -h
for install options - single binary, no dependencies required
sudo curl -L \
$(curl -s https://api.github.com/repos/catalinpan/km/releases/latest \
| jq -r '.assets[] | select(.name == "km-linux-amd64") | .browser_download_url') \
-o /usr/local/bin/km && sudo chmod +x /usr/local/bin/km
km cc
km cn
km cn default
km logs
go run ./cmd/km/main.go get po
go test -v ./...
go build -o km ./cmd/km/main.go