Field Selectors

148

Field selectors let you select Kubernetes resources based on the value of one or more resource fields.

Stuff you wanna know:

  1. Field selectors are essentially resource filters.
  2. By default, no selectors/filters are applied, meaning that all resources of the specified type are selected.
  3. Supported field selectors vary by Kubernetes resource type. All resource types support the metadata.name and metadata.namespace fields.
  4. Using unsupported field selectors produces an error.
  5. You can use the =, ==, and != operators with field selectors (= and == mean the same thing).
  6. Field selectors can be chained together as a comma-separated list, just like label and other selectors.
  7. You can use field selectors across multiple resource types.

More stuff: