Correcting details about current request namespace (#15061)
Removed ambiguous word 'temporarily', as namespace set using that method, is not temporary. It is permanent for a current resource and there is no concept of a temporary namespace in K8s. Also, for consisteny '--namespace' flag added after the actual command.
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
0a835fc032
commit
2fb8128b30
@@ -65,13 +65,13 @@ Kubernetes starts with three initial namespaces:
|
|||||||
|
|
||||||
### Setting the namespace for a request
|
### Setting the namespace for a request
|
||||||
|
|
||||||
To temporarily set the namespace for a request, use the `--namespace` flag.
|
To set the namespace for a current request, use the `--namespace` flag.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl --namespace=<insert-namespace-name-here> run nginx --image=nginx
|
kubectl run nginx --image=nginx --namespace=<insert-namespace-name-here>
|
||||||
kubectl --namespace=<insert-namespace-name-here> get pods
|
kubectl get pods --namespace=<insert-namespace-name-here>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Setting the namespace preference
|
### Setting the namespace preference
|
||||||
|
|||||||
Reference in New Issue
Block a user