Run commands inside a pod for live inspection.
Section: Logs, Exec, and Ephemeral Debugging
Open a shell in a running container
bash
bash
kubectl exec -it <pod> -n <namespace> -- /bin/shLearn 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