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

For mor information in general:
kubectl for Docker Users


Revision #1
Created 2 February 2022 08:35:57
Updated 2 February 2022 08:39:56