Capture the exact spec and status for later analysis.
Section: Incident Collection
Export object YAML during incident
bash
bash
kubectl get <resource> <name> -n <namespace> -o yaml > incident-object.yamlLearn 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 Incident Collection
Dump cluster info to a directory
Collect cluster state to files instead of stdout.
Save pod logs to a file
Persist logs for investigation or attachment to a ticket.
Read logs via deployment resource
Print logs from a workload resource instead of a single pod.