Dump a resource as YAML.
Section: Inspection and Deep Queries
Get YAML output
bash
bash
kubectl get deployment web -n payments -o yamlExplanation
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