kubectl config set-context --current (#15039)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
498d870280
commit
a23fcb5727
@@ -80,7 +80,7 @@ You can permanently save the namespace for all subsequent kubectl commands in th
|
|||||||
context.
|
context.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl config set-context $(kubectl config current-context) --namespace=<insert-namespace-name-here>
|
kubectl config set-context --current --namespace=<insert-namespace-name-here>
|
||||||
# Validate it
|
# Validate it
|
||||||
kubectl config view | grep namespace:
|
kubectl config view | grep namespace:
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user