mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-23 05:56:32 +00:00
See https://github.com/ahmetb/kubectx Implementation for #173 Collaborative work of Nico Kerschbaumer and me
39 lines
1.0 KiB
Markdown
39 lines
1.0 KiB
Markdown
---
|
|
title: Kubectx
|
|
homepage: https://github.com/ahmetb/kubectx
|
|
tagline: |
|
|
kubectx: kubectx is a utility to manage and switch between kubectl contexts.
|
|
---
|
|
|
|
### Updating `kubectx`
|
|
|
|
`webi kubectx@stable`
|
|
|
|
Use the `@beta` tag for pre-releases.
|
|
|
|
## Cheat Sheet
|
|
|
|
> `kubectx` kubectx helps you switch between Kubernetes clusters back and forth
|
|
|
|
To run kubectx:
|
|
|
|
```bash
|
|
kubectx
|
|
```
|
|
|
|
### Command line arguments
|
|
|
|
```bash
|
|
USAGE:
|
|
kubectx : list the contexts
|
|
kubectx <NAME> : switch to context <NAME>
|
|
kubectx - : switch to the previous context
|
|
kubectx -c, --current : show the current context name
|
|
kubectx <NEW_NAME>=<NAME> : rename context <NAME> to <NEW_NAME>
|
|
kubectx <NEW_NAME>=. : rename current-context to <NEW_NAME>
|
|
kubectx -d <NAME> : delete context <NAME> ('.' for current-context)
|
|
(this command won't delete the user/cluster entry
|
|
that is used by the context)
|
|
kubectx -u, --unset : unset the current context
|
|
```
|