Skip to content
This repository was archived by the owner on May 3, 2020. It is now read-only.
/ go-kubectx Public archive

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

Notifications You must be signed in to change notification settings

aca/go-kubectx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 2, 2020
0cf00a0 · May 2, 2020

History

28 Commits
Jan 25, 2020
Jan 24, 2020
Jan 24, 2020
Jan 24, 2020
Jan 25, 2020
Jan 24, 2020
May 2, 2020
Jan 24, 2020
Jan 24, 2020
Jan 24, 2020
Jan 24, 2020
Jan 25, 2020

Repository files navigation

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 [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.

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