using kubernetes field-selector

  1. Use the kubectl get command with the --field-selector flag to filter resources based on specific field values.
  2. Specify the field and value pair to match the desired resources.
  3. Use the equal sign (=) to indicate the exact match for the field value.
  4. Use the not equals sign (!=) to exclude resources with the specified field value.
  5. Use the in operator (in=) to match resources with field values contained in a comma-separated list.
  6. Use the not in operator (notin=) to exclude resources with field values not contained in a comma-separated list.
  7. Use the exists operator (exists=) to match resources where the specified field exists.
  8. Use the does not exist operator (does not exist=) to exclude resources where the specified field does not exist.