CKA · Troubleshooting · lesson 10 of 12

Container Logs and Output Streams

How Kubernetes captures container output, the kubectl logs flags that matter, log rotation mechanics, and debugging CrashLoopBackOff pods.

13 min · Exam domain: Troubleshooting (30%)

A pod is stuck in CrashLoopBackOff. You have maybe thirty seconds of useful context before the container restarts again. The answer is almost always in the logs, but only if you can pull them before the next restart wipes the slate.

"Manage and evaluate container output streams" is an explicit CKA competency within the Troubleshooting domain, which at 30% is the largest slice of the exam. The mechanics of how container logs work, where they live, and what kubectl logs can and cannot show you are the foundation of everything else in this module.

Enroll to read the rest of this lesson

Free. Your progress and certificate come with it.

Enroll, free