Filter server-side using field selectors.

Section: Inspection and Deep Queries

Field selector filter

bash
bash
kubectl get pods -A --field-selector=status.phase!=Running
Explanation

Filter server-side using field selectors.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Inspection and Deep Queries
Custom columns output
Render table output with selected fields.
OpenIn sheetbashsame section
Get JSON output
Dump a resource as JSON.
OpenIn sheetbashsame section
Get YAML output
Dump a resource as YAML.
OpenIn sheetbashsame section
Sort resources
Sort list output by a JSONPath-like field.
OpenIn sheetbashsame section
Label selector filter
Filter resources using labels.
OpenIn sheetbashsame section
Machine-friendly output
Suppress table headers for scripting.
OpenIn sheetbashsame section