Faster way to switch between clusters and namespaces in kubectl
NOTE: The stable versions of
kubectx
andkubens
are the Bash script implementations (i.e. the./kubectx
and./kubens
files below). Go-based implementations are still unstable and are work-in-progress.
:
character (e.g. AWS EKS)With this release, the kubectx
and kubens
rewritten in Go (if you didn't know, existing implementations were just 200-line Bash scripts). Please try out the new versions written in Go and give feedback!
Why rewrite in Go?
kubectx
/kubens
no longer depends on kubectlkubectl
.kubectx
/kubens
on Windows (please try it out!)Miss the bash-based implementations? Don't worry! I intend to keep mini versions of kubectx
and kubens
available in maintenance mode for the foreseeable future! Plus, this new version is actually backwards compatible with them!
For stability reasons: Homebrew and Krew packages should not be using this new Go-based implementation, yet. I expect Alpine and Debian Linux packagers will also not update them just yet. After addressing feedback from you, we'll flip the switch, and hopefully existing users won’t notice a thing.
To get started, download one of the .tar.gz or .zip files listed below! Happy kubectxing!
--unset
/-u
option for kubectx to remove the current namespace setting.fzf
is now called with --no-preview
option to prevent the preview pane from showing up (#163)kubectx -d
) (#178)kubectl ctx
and kubectl ns
)-c
/--current
flag to print current context or namespace.