Run a container with kubectl
In Docker you can run a one-time container with the following
docker run --rm -it centos /bin/bash
To use the same in Kubernetes you need to use kubectl in any cluster
kubectl run tmp-shell --restart=Never --rm -i --tty --image centos -- /bin/bash
Links
For mor information in general:
kubectl for Docker Users
No Comments