kubectl 1.37 · Logs and debugging

View logs from before a crash

Print the logs of the previous container instance.

kubectl logs web-7d9f8c6b5-abcde --previous

Official kubectl 1.37 documentation

More logs and debugging commands

All logs and debugging commands · kubectl 1.37 cheatsheet

Was this page helpful?