Files
cheatsheet-tldr/tldr/kubens

22 lines
345 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# kubens
> Utility to switch between Kubernetes namespaces.
> More information: <https://github.com/ahmetb/kubectx>.
- List the namespaces:
`kubens`
- Change the active namespace:
`kubens {{name}}`
- Switch to the previous namespace:
`kubens -`