aca / go-kubectx

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

About

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


Languages

Language:Go 81.5%Language:Shell 17.0%Language:Dockerfile 1.5%