StudyToCert

All certifications / CKAD / Lessons

Certified Kubernetes Application Developer CKAD (Kubernetes v1.35 curriculum) · Domain 3: Application Observability and Maintenance

Container logs: kubectl logs with -c, -f, --previous, --tail, --since, -l and deploy/<name>

▶ Watch the overview video

Last reviewed September 25, 2026 · Leer en español

Containers are expected to write logs to standard output and standard error. The container runtime captures those streams into files on the node, and kubectl logs reads them through the kubelet. If an application writes only to a file inside the container, kubectl logs shows nothing; that is one reason for the sidecar pattern that tails such files to stdout.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 6 more sections, 4 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study CKAD for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the CKAD study plan