← Debugging376 / 640
hardkubectl

Attach a debug container to a running pod for live troubleshooting

command

kubectl debug pod POD_NAME --image IMAGE --stdin --tty

also accepted

kubectl debug podkubectl debug

Command breakdown

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

kubectldebugpodPOD_NAME--imageIMAGE--stdin--tty
FlagPurpose
--imageBoolean flag
--stdinBoolean flag
--ttyBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →