Container Logs
Master kubectl logs — follow, filter, and retrieve logs from multi-container pods and crashed containers for CKAD exam tasks.
Your pod is in CrashLoopBackOff. The container has restarted 11 times and just died again 8 seconds ago. You type kubectl logs mypod and get nothing — the container is mid-restart and the logs from the previous crash are already gone. This is the moment when you find out whether you know kubectl logs or just the happy path of it.
The four patterns that cover 95% of exam tasks: viewing current output, streaming live, targeting a specific container in a multi-container spec, and recovering logs from a crash. The fifth — the sidecar streaming pattern — exists for apps you don't control.
Enroll to read the rest of this lesson
Free. Your progress and certificate come with it.
Enroll, free