kubectl run image code example
Example 1: kubectl exec bash
kubectl exec --stdin --tty shell-demo -- /bin/bash
Example 2: kubectl run pod
kubectl run <pod-name> --image=<image> --restart=Never
Example 3: how to login to docker inside kubernetes cluster
kubectl create secret docker-registry regcred --docker-server=<your-registry-server> --docker-username=<your-name> --docker-password=<your-pword> --docker-email=<your-email>