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.pull/15085/head
parent
0a835fc032
commit
2fb8128b30
|
@ -65,13 +65,13 @@ Kubernetes starts with three initial namespaces:
|
|||
|
||||
### 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:
|
||||
|
||||
```shell
|
||||
kubectl --namespace=<insert-namespace-name-here> run nginx --image=nginx
|
||||
kubectl --namespace=<insert-namespace-name-here> get pods
|
||||
kubectl run nginx --image=nginx --namespace=<insert-namespace-name-here>
|
||||
kubectl get pods --namespace=<insert-namespace-name-here>
|
||||
```
|
||||
|
||||
### Setting the namespace preference
|
||||
|
|
Loading…
Reference in New Issue