Can some one share the command to extract yaml from existing running pod , which . . .

Dinesha Sharma:
can some one share the command to extract yaml from existing running pod , which contains just relevant info in brief

Mohamed Ayman:
$kubectl get pod <podname> -o yaml > pod.yaml

Dinesha Sharma:
i know this command, however this gives all other info too , say in a exam i just want to output relevant info in a temp yaml file and edit it … i do recollect in one of the lectures in CKA / CKAD in mumshad’s course. he did mention it… dont recollect it now.