Section: Inspection and Deep Queries

Get YAML output

bash
bash
kubectl get deployment web -n payments -o yaml
Explanation

Dump a resource as YAML.

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
Machine-friendly output
Suppress table headers for scripting.
OpenIn sheetbashsame section
Get resource names only
Return resource identifiers only.
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