kubectl 1.37 · Logs and debugging

Attach a debug container

Add an ephemeral container to a running pod to inspect it.

kubectl debug -it web-7d9f8c6b5-abcde --image=busybox --target=web

Official kubectl 1.37 documentation

More logs and debugging commands

All logs and debugging commands · kubectl 1.37 cheatsheet

Was this page helpful?