2018-12-13 06:23:33 +01:00
|
|
|
# kubectx
|
|
|
|
|
|
|
|
> Utility to manage and switch between `kubectl` contexts.
|
2025-04-25 05:54:18 +03:00
|
|
|
> More information: <https://manned.org/kubectx>.
|
2018-12-13 06:23:33 +01:00
|
|
|
|
|
|
|
- List the contexts:
|
|
|
|
|
|
|
|
`kubectx`
|
|
|
|
|
|
|
|
- Switch to a named context:
|
|
|
|
|
|
|
|
`kubectx {{name}}`
|
|
|
|
|
|
|
|
- Switch to the previous context:
|
|
|
|
|
|
|
|
`kubectx -`
|
|
|
|
|
2024-06-12 20:08:51 +07:00
|
|
|
- Rename a named context:
|
|
|
|
|
|
|
|
`kubectx {{alias}}={{name}}`
|
|
|
|
|
|
|
|
- Show the current named context:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`kubectx {{[-c|--current]}}`
|
2024-06-12 20:08:51 +07:00
|
|
|
|
2018-12-13 06:23:33 +01:00
|
|
|
- Delete a named context:
|
|
|
|
|
|
|
|
`kubectx -d {{name}}`
|