Return resource identifiers only.

Section: Inspection and Deep Queries

Get resource names only

bash
bash
kubectl get pods -n payments -o name
Explanation

Return resource identifiers only.

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
Machine-friendly output
Suppress table headers for scripting.
OpenIn sheetbashsame section
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
Field selector filter
Filter server-side using field selectors.
OpenIn sheetbashsame section