Launch a temporary debugging container in an existing pod.
Section: Logs, Exec, and Ephemeral Debugging
Attach an ephemeral debug container
bash
bash
kubectl debug -it <pod> -n <namespace> --image=busybox:1.36 --target=<container>Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Logs, Exec, and Ephemeral Debugging