In Docker you can run a one-time container with the following docker run --rm -it centos /bin/ba...
If you need to connect directly to a tcp-port in a pod you can do this with port forwarding. So ...