Faster way to switch between clusters and namespaces in kubectl
Go to file
Ahmet Alp Balkan a19b9535f6
Formula fixes
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2017-04-25 13:28:10 -07:00
completion Use bash completion for zsh completion 2017-04-04 12:40:57 -07:00
Formula Formula fixes 2017-04-25 13:28:10 -07:00
CONTRIBUTING.md Add {README,CONTRIBUTING}.md 2017-03-29 00:30:12 -07:00
kubectx Add IFS to script, help wanted in README 2017-03-29 10:05:33 -07:00
LICENSE Initial import 2017-03-28 17:24:14 -07:00
README.md Update README.md 2017-04-04 12:41:33 -07:00

kubectx(1)

kubectx is an utility to manage and switch between kubectl(1) contexts.

USAGE:
  kubectx                   : list the contexts
  kubectx <NAME>            : switch to context
  kubectx -                 : switch to the previous context
  kubectx <NEW_NAME>=<NAME> : create alias for context
  kubectx -h,--help         : show this message

Purpose of this project is to provide an utility and facilitate discussion about how kubectl can manage contexts better.

Example

$ kubectx minikube
Switched to context "minikube".

$ kubectx -
Switched to context "oregon".

$ kubectx -
Switched to context "minikube".

$ kubectx dublin=gke_ahmetb_europe-west1-b_dublin
Context "dublin" set.
Aliased "gke_ahmetb_europe-west1-b_dublin" as "dublin".

Set up bash and zsh completion →

Help wanted

  • homebrew formula/tap that installs the script and completions

Disclaimer: This is not an official Google product.