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