← Pods135 / 640
hardkubectl

Output the full YAML specification of a specific pod resource

command

kubectl get pod POD_NAME -o yaml

also accepted

kubectl get po POD_NAME -o yamlkubectl get pod -o yaml

Command breakdown

Part of the Kubernetes CLI (kubectl) — Pods category.

kubectlgetpodPOD_NAME-oyaml
FlagPurpose
-oBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →