Home

Awesome

Archived

kubectx is now written in go. Check #12. This project is not maintained anymore.


go-kubectx

Simply 5x-10x faster alternative to famous kubectx. Uses client-go.

Dependencies

Requires fzf same as original kubectx.

Install

Using go mod, requires go>=1.13

git clone git@github.com:aca/go-kubectx.git && cd go-kubectx
go install ./cmd/kubens
go install ./cmd/kubectx

# Using Docker - also cross-compiles for other OS's
# Binaries will be built into the output directory after build.
cd go-kubectx && ./build.sh

or download pre-built binaries from Releases.

Benchmarks

CommandMean [ms]Min [ms]Max [ms]Relative
/usr/bin/kubectx minikube98.9 ± 12.184.8138.65.35 ± 0.89
/home/rok/bin/kubectx minikube18.5 ± 2.115.627.11.00
CommandMean [ms]Min [ms]Max [ms]Relative
/usr/bin/kubens kube-system258.6 ± 20.7237.9300.95.73 ± 1.78
/home/rok/bin/kubens kube-system45.1 ± 13.632.3120.01.00