SpinTheMic
Pro

Interview practice question

Logs from a crashed container are gone

Cloud & DevOps · Kubernetes · Beginner

A container restarted, and kubectl logs only shows the new instance's logs. How do you see why the previous one crashed?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • kubectl logs --previous.
  • kubectl describe for last state, exit code.
  • Events show reason.
  • Central logging keeps history.
  • Logs lost when pod deleted.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics