In this troubleshooting episode, Professor Erica tackles a persistent Kubernetes pod that restarts every 90 seconds with a CrashLoopBackOff error. While the container image and pod manifest remain unchanged and the application runs clean in staging, the production environment reveals hidden pitfalls.
The video walks through a comprehensive diagnostic tree, starting with stale ConfigMap and Secret mounts that can cause pod failures when data changes without a rollout. It then examines init-container ordering and post-start hook failures, which can silently break the pod lifecycle. The discussion highlights the native sidecar lifecycle introduced in Kubernetes 1.29 versus legacy workarounds, and explains the critical distinction between readiness and liveness probes, as a misconfigured liveness probe can trigger a restart cascade even when the container is functioning.
Practical commands like kubectl logs and exec are demonstrated for reconnaissance. The next video will show how DNS resolution failures can produce identical symptoms inside the cluster.
Chapters:
- 0:00 The State Machine and the Backoff Clock
- 3:11 ConfigMap and Secret Mount Staleness
- 5:21 Init-Container Ordering and Post-Start Hook Failures
- 7:49 Sidecar Lifecycle: Native vs Workaround
- 9:59 The Readiness vs Liveness Distinction
- 11:58 The kubectl Logs and Exec Reconnaissance Pattern
- 14:17 Quiz Time