kubectl view pods code example
Example 1: kubectl run pod
kubectl run --image= --restart=Never
Example 2: kubectl describe to yaml
kubectl describe -o yaml
kubectl run --image= --restart=Never
kubectl describe -o yaml