Update field-selectors.md (#14839)
We should use --all-namespaces to filter all the service
This commit is contained in:
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:
|
||||
|
||||
```shell
|
||||
kubectl get services --field-selector metadata.namespace!=default
|
||||
kubectl get services --all-namespaces --field-selector metadata.namespace!=default
|
||||
```
|
||||
|
||||
## Chained selectors
|
||||
|
|
Loading…
Reference in New Issue