Update field-selectors.md (#14839)

We should use --all-namespaces to filter all the service
This commit is contained in:
Haoran Wang 2019-06-12 21:55:31 +08:00 committed by Kubernetes Prow Robot
parent 528fd25b3f
commit e0f55762dc
1 changed files with 1 additions and 1 deletions

View File

@ -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:
```shell
kubectl get services --field-selector metadata.namespace!=default
kubectl get services --all-namespaces --field-selector metadata.namespace!=default
```
## Chained selectors