Skip to content

Commit 282c4cf

Browse files
authored
kubectl-config: add default namespace switching example (#17649)
* Update kubectl-config.md
1 parent bf47c68 commit 282c4cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pages/common/kubectl-config.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717

1818
`kubectl config current-context`
1919

20+
- Set the default namespace of the current context:
21+
22+
`kubectl config set-context --current --namespace {{namespace}}`
23+
2024
- Switch to another context:
2125

2226
`kubectl config {{use|use-context}} {{context_name}}`

0 commit comments

Comments
 (0)