Faster way to switch between clusters and namespaces in kubectl
Go to file
2017-03-31 09:45:55 -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-03-31 09:45:55 -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".

Help wanted

  • bash completion
  • zsh completion
  • homebrew formula/tap

Disclaimer: This is not an official Google product.