k8s pod yaml code example
Example 1: kubectl create pod
kubectl run <pod-name> --image=<image> --restart=Never
Example 2: kubectl describe to yaml
kubectl describe <type> <name> -o yaml
kubectl run <pod-name> --image=<image> --restart=Never
kubectl describe <type> <name> -o yaml