Kubernetes Troubleshooting Cheat Sheet/Debug node with ephemeral pod

Launch a debugging pod on a node.

Section: Debugging Pods and Containers

Debug node with ephemeral pod

bash
bash
kubectl debug node/worker-02 -it --image=busybox:1.36
Explanation

Launch a debugging pod on a node.

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 Debugging Pods and Containers
Debug pod by copying it
Create a debug copy of a pod.
OpenIn sheetbashsame section
Add ephemeral debug container
Inject an ephemeral debug container into a running pod.
OpenIn sheetbashsame section
Describe failed pods by selector
Inspect all matching pods for failure clues.
OpenIn sheetbashsame section
Check RBAC permission
Ask the API server whether an action is allowed.
OpenIn sheetbashsame section
Check permission as another identity
Test RBAC from another subject's perspective.
OpenIn sheetbashsame section
Show pod conditions
Print pod condition states.
OpenIn sheetbashsame section