← Debugging378 / 640
hardkubectl

Launch a temporary BusyBox pod for network or DNS debugging, auto-deleted on exit

command

kubectl run debug-pod --image=busybox --rm -it --restart=Never -- sh

also accepted

kubectl run debug-pod --image=busybox --rm -it --restart=Never

Command breakdown

Part of the Kubernetes CLI (kubectl) — Debugging category.

kubectlrundebug-pod--image=busybox--rm-it--restart=Never--sh
FlagPurpose
--imageSet to: busybox
--rmBoolean flag
--restartSet to: Never
--Boolean flag

Test your recall — not just your reading.

Practice with interactive quiz →