Logs of a Container That Restarted
A container keeps restarting (CrashLoopBackOff). kubectl logs shows only the first lines of the new run. How do you see what the crashed run printed?
CrashLoopBackOff
kubectl logs
Choose one answer
kubectl describe pod <pod> --logs
kubectl logs <pod> --since=crash
kubectl logs <pod> --all
kubectl logs <pod> --previous