kubectl 1.37 · Logs and debugging

View a pod's logs

Print the logs of a pod. Add -c CONTAINER when the pod runs more than one container.

kubectl logs web-7d9f8c6b5-abcde

Official kubectl 1.37 documentation

More logs and debugging commands

All logs and debugging commands · kubectl 1.37 cheatsheet

Was this page helpful?