mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-08 03:45:52 +00:00
34 lines
750 B
Plaintext
34 lines
750 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# kubie
|
|
|
|
> Utility to switch between `kubectl` contexts and namespaces.
|
|
> More information: <https://github.com/sbstp/kubie#usage>.
|
|
|
|
- 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]}} {{namespace}}`
|
|
|
|
- Execute a command in the given context and namespace, without spawning a shell:
|
|
|
|
`kubie exec {{context}} {{namespace}} {{command}}`
|
|
|
|
- Check the Kubernetes configuration files for issues:
|
|
|
|
`kubie lint`
|