kubectl 1.37 · Logs and debugging

Open a shell in a pod

Run an interactive shell inside a container.

kubectl exec -it web-7d9f8c6b5-abcde -- sh

Official kubectl 1.37 documentation

More logs and debugging commands

All logs and debugging commands · kubectl 1.37 cheatsheet

Was this page helpful?