mirror of https://github.com/CrimsonTome/tldr.git
20 lines
251 B
Markdown
20 lines
251 B
Markdown
|
# kubectx
|
||
|
|
||
|
> Utility to manage and switch between `kubectl` contexts.
|
||
|
|
||
|
- List the contexts:
|
||
|
|
||
|
`kubectx`
|
||
|
|
||
|
- Switch to a named context:
|
||
|
|
||
|
`kubectx {{name}}`
|
||
|
|
||
|
- Switch to the previous context:
|
||
|
|
||
|
`kubectx -`
|
||
|
|
||
|
- Delete a named context:
|
||
|
|
||
|
`kubectx -d {{name}}`
|