Roadmap › Kubernetes (K8s) & AKS › Module: Deploying and Operating
Lessons in this course (15)

14. Troubleshooting common pod problems

Advanced★ Must knowLesson 14 of 15
Status/symptomLikely causeCheck
PendingNot enough CPU/memory, node selector/taints, PVC not boundkubectl describe pod events, kubectl get nodes, quotas
ImagePullBackOff / ErrImagePullWrong image/tag, registry auth (ACR not attached), networkdescribe pod, az aks check-acr
CrashLoopBackOffApp exits on start: bad config, missing secret, exception, failing liveness probekubectl logs --previous, env/secret refs, probe settings
OOMKilledMemory limit too low or a leakdescribe pod (Last State), kubectl top, raise limit/fix leak
CreateContainerConfigErrorMissing ConfigMap/Secret keydescribe pod
Running but not receiving trafficReadiness failing, Service selector/labels mismatch, wrong targetPortkubectl get endpoints svc, labels, probes
502/503 from ingressNo ready endpoints, wrong service port, TLS/host mismatchingress controller logs, endpoints
Service DNS failsCoreDNS issues, wrong namespace in namenslookup svc.ns.svc.cluster.local from a debug pod

kubectl debug -it pod/name --image=busybox --target=api attaches an ephemeral debug container.