Update field-selectors.md (#14839)
We should use --all-namespaces to filter all the service
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
528fd25b3f
commit
e0f55762dc
@@ -40,7 +40,7 @@ Error from server (BadRequest): Unable to find "ingresses" that match label sele
|
|||||||
You can use the `=`, `==`, and `!=` operators with field selectors (`=` and `==` mean the same thing). This `kubectl` command, for example, selects all Kubernetes Services that aren't in the `default` namespace:
|
You can use the `=`, `==`, and `!=` operators with field selectors (`=` and `==` mean the same thing). This `kubectl` command, for example, selects all Kubernetes Services that aren't in the `default` namespace:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl get services --field-selector metadata.namespace!=default
|
kubectl get services --all-namespaces --field-selector metadata.namespace!=default
|
||||||
```
|
```
|
||||||
|
|
||||||
## Chained selectors
|
## Chained selectors
|
||||||
|
|||||||
Reference in New Issue
Block a user