skip to content
Alvin Lucillo

Run inline script in a temp pod

/ 1 min read

If you have a script you want to be run in a temporary pod, just pass it as container arguments like so:

k run test --image=busybox --restart=Never --rm -it -- /bin/sh -c 'while true; do date; sleep 1; done'