how to get yaml from kubectl describe code example Example: kubectl describe to yaml kubectl describe <type> <name> -o yaml