kubectl debug web-7d8f9c -it --image=busybox

Category: Kubernetes & Containers

kubectl debug web-7d8f9c -it --image=busybox

Debug a pod with an ephemeral container

Adds a temporary busybox container to the running pod so you can inspect it without disturbing the app containers. The debug container shares the pod's network and storage. Exit to remove it; the pod itself is untouched.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.