← Debugging119 / 640
hardkubectl

Retrieve logs from the previous terminated instance of a pod container

command

kubectl logs POD_NAME --previous

also accepted

kubectl logs --previouskubectl logs POD_NAME -pkubectl logs -p

Test your recall — not just your reading.

Practice with interactive quiz →