Stage 1, Part 3 of 9 · p. 3, Kubernetes Fundamentals (Day 0/1)
PART 3: PRODUCTION FAILURE MODES
15. Top 10 Kubernetes Failures
| # | Failure | Symptom | Root Cause | Fix |
| 1 | CrashLoopBackOff | Pod keeps restarting | App crashes on start | kubectl logs, fix app |
| 2 | ImagePullBackOff | Can't pull image | Wrong tag, auth, network | Check image, imagePullSecrets |
| 3 | OOMKilled | Exit code 137 | Memory limit exceeded | Increase limit, fix leak |
| 4 | Pending pod | Pod never schedules | No nodes with resources | Check events, add capacity |
| 5 | Service has no endpoints | Can't reach Service | Wrong labels/selector | Fix labels |
| 6 | CreateContainerConfigError | Container fails to start | Missing ConfigMap/Secret | Create the missing resource |
| 7 | Readiness probe failure | Pod not Ready | App not responding | Fix probe or app |
| 8 | PVC pending | Volume never binds | No matching PV/StorageClass | Check StorageClass |
| 9 | Ingress not routing | 404/502 | Wrong service/port | Check Ingress config |
| 10 | Node NotReady | Node unavailable | Kubelet down, disk full | SSH, check kubelet |
16. Kubernetes Debugging Runbook
"Pod Won't Start" — Step-by-Step
text
STEP 1: Check Pod status
$ kubectl get pods
$ kubectl get pods -o wide
STEP 2: Describe the Pod (best source of truth)
$ kubectl describe pod <pod>
# Look at Events section at the bottom
STEP 3: Check logs
$ kubectl logs <pod>
$ kubectl logs <pod> --previous # Previous instance if crashed
STEP 4: For CrashLoopBackOff
# Check the app's exit code
$ kubectl get pod <pod> -o jsonpath='{.status.containerStatuses[0].lastState}'
# Review logs
$ kubectl logs <pod> --previous
STEP 5: For ImagePullBackOff
$ kubectl describe pod <pod> | grep -A5 Events
# Common causes:
# - Wrong image name/tag
# - No imagePullSecrets
# - Registry unreachable
STEP 6: For Pending
$ kubectl describe pod <pod> | grep -A10 Events
# Common causes:
# - Insufficient resources
# - Node selector/affinity mismatch
# - Taints without tolerations
# - PVC not bound
STEP 7: For CreateContainerConfigError
$ kubectl describe pod <pod>
# Usually missing ConfigMap or Secret
$ kubectl get configmap <name>
$ kubectl get secret <name>
STEP 8: Exec into the Pod (if running)
$ kubectl exec -it <pod> -- sh
$ kubectl exec -it <pod> -- /bin/bash
STEP 9: Use kubectl debug for ephemeral containers
$ kubectl debug -it <pod> --image=busybox --target=<container>
STEP 10: Check events cluster-wide
$ kubectl get events --sort-by=.metadata.creationTimestamp
$ kubectl get events --field-selector involvedObject.name=<pod>
Quick Diagnostic Table
| Status | Likely Cause | Check |
| CrashLoopBackOff | App error | kubectl logs --previous |
| ImagePullBackOff | Image/auth | kubectl describe pod |
| Pending | Resources/affinity | kubectl describe pod |
| OOMKilled | Memory limit | Increase limit, check leaks |
| Readiness probe failed | App slow | Tune probe |
| Service no endpoints | Labels | kubectl get endpoints |
17. Blast Radius Analysis
What Happens When Kubernetes Fails?
| Component | Impact | Severity |
| API server down | Can't manage cluster; running Pods continue | SEV-1 |
| etcd down | Control plane can't function | SEV-1 |
| Scheduler down | New Pods stay Pending | SEV-2 |
| Controller Manager down | No reconciliation | SEV-2 |
| Node NotReady | Pods evicted after timeout | SEV-1 |
| CNI failure | Pods lose network | SEV-1 |
| DNS failure | Service discovery breaks | SEV-1 |
| Ingress down | External access fails | SEV-1 |
Mitigation Strategies
| Strategy | Implementation |
| Multi-master control plane | 3+ masters, etcd quorum |
| Multiple replicas | At least 2-3 per workload |
| PodDisruptionBudgets | Protect during disruptions |
| Anti-affinity | Spread replicas across nodes |
| Backup etcd | Regular snapshots |
| GitOps | Declarative, versioned |
| Monitoring | Prometheus, alerts |
1:1 copy of the class Google Doc, code in code blocks.