2018-12-13 05:23:33 +00:00
|
|
|
# kubectx
|
|
|
|
|
|
|
|
> Utility to manage and switch between `kubectl` contexts.
|
2019-06-05 08:55:49 +01:00
|
|
|
> More information: <https://github.com/ahmetb/kubectx>.
|
2018-12-13 05:23:33 +00:00
|
|
|
|
|
|
|
- List the contexts:
|
|
|
|
|
|
|
|
`kubectx`
|
|
|
|
|
|
|
|
- Switch to a named context:
|
|
|
|
|
|
|
|
`kubectx {{name}}`
|
|
|
|
|
|
|
|
- Switch to the previous context:
|
|
|
|
|
|
|
|
`kubectx -`
|
|
|
|
|
2024-06-12 14:08:51 +01:00
|
|
|
- Rename a named context:
|
|
|
|
|
|
|
|
`kubectx {{alias}}={{name}}`
|
|
|
|
|
|
|
|
- Show the current named context:
|
|
|
|
|
|
|
|
`kubectx -c`
|
|
|
|
|
2018-12-13 05:23:33 +00:00
|
|
|
- Delete a named context:
|
|
|
|
|
|
|
|
`kubectx -d {{name}}`
|