Archived
kubectx is now written in go. Check #12. This project is not maintained anymore.
Simply 5x-10x faster alternative to famous kubectx. Uses client-go.
Requires fzf same as original kubectx.
Using go mod, requires go>=1.13
git clone [email protected]: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.
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
/usr/bin/kubectx minikube |
98.9 ± 12.1 | 84.8 | 138.6 | 5.35 ± 0.89 |
/home/rok/bin/kubectx minikube |
18.5 ± 2.1 | 15.6 | 27.1 | 1.00 |
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
/usr/bin/kubens kube-system |
258.6 ± 20.7 | 237.9 | 300.9 | 5.73 ± 1.78 |
/home/rok/bin/kubens kube-system |
45.1 ± 13.6 | 32.3 | 120.0 | 1.00 |