mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-09-13 22:38:59 +00:00
Add {README,CONTRIBUTING}.md
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
33
README.md
Normal file
33
README.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# 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
|
||||
```
|
||||
|
||||
## 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".
|
||||
```
|
||||
|
||||
-----
|
||||
|
||||
Disclaimer: This is not an official Google product.
|
Reference in New Issue
Block a user