mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
29 lines
626 B
Markdown
29 lines
626 B
Markdown
![]() |
# kubie
|
||
|
|
||
|
> Utility to switch between `kubectl` contexts and namespaces.
|
||
|
> More information: <https://github.com/sbstp/kubie>.
|
||
|
|
||
|
- Display a selectable menu of contexts:
|
||
|
|
||
|
`kubie ctx`
|
||
|
|
||
|
- Switch current shell to the given context:
|
||
|
|
||
|
`kubie ctx {{context}}`
|
||
|
|
||
|
- Switch current shell to the given namespace:
|
||
|
|
||
|
`kubie ns {{namespace}}`
|
||
|
|
||
|
- Switch current shell to the given context and namespace:
|
||
|
|
||
|
`kubie ctx {{context}} -n {{namespace}}`
|
||
|
|
||
|
- Execute a command in the given context and namespace, without spawning a shell:
|
||
|
|
||
|
`kubie exec {{context}} {{namespace}} {{command}}`
|
||
|
|
||
|
- Check the Kubernetes config files for issues:
|
||
|
|
||
|
`kubie lint`
|