mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
kubectl-config: add default namespace switching example (#17649)
* Update kubectl-config.md
This commit is contained in:
@@ -17,6 +17,10 @@
|
||||
|
||||
`kubectl config current-context`
|
||||
|
||||
- Set the default namespace of the current context:
|
||||
|
||||
`kubectl config set-context --current --namespace {{namespace}}`
|
||||
|
||||
- Switch to another context:
|
||||
|
||||
`kubectl config {{use|use-context}} {{context_name}}`
|
||||
|
||||
Reference in New Issue
Block a user