Update field-selectors.md

This commit is contained in:
Aritra Ghosh 2023-08-23 08:15:35 -04:00 committed by GitHub
parent 681c1b4ab0
commit 0078392f87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -44,8 +44,6 @@ kubectl get services --all-namespaces --field-selector metadata.namespace!=defa
(`in`, `notin`,`exists`) are not supported for field selectors.
{{< /note >}}
## Chained selectors
As with [label](/docs/concepts/overview/working-with-objects/labels) and other selectors, field selectors can be chained together as a comma-separated list. This `kubectl` command selects all Pods for which the `status.phase` does not equal `Running` and the `spec.restartPolicy` field equals `Always`: