kubectl exec -ti mypodname bash code example
Example 1: kubectl run 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