AWS Builder Center

What I Check When a Pod Won’t Start on EKS

On-prem, a broken service meant logging into the server. On EKS, the server is hidden away, so I follow the same order every time.

Information Technology student
1. Read the status.  kubectl get pods -n <namespace>  usually tells you where to look:
  •  ImagePullBackOff : the image tag is wrong, or the node can’t pull from ECR.
  •  Pending : the scheduler can’t place the pod.
  •  CrashLoopBackOff : the container starts and then dies.
  • 
2. Check the events.  kubectl describe pod <name>  and scroll to Events. “Insufficient cpu” or a taint mismatch explains most  Pending  pods.

3. Read the logs from the last crash.  kubectl logs <name> --previous  shows why the last container died, not the fresh one that’s restarting.

4. Check config and secrets.  CreateContainerConfigError  usually means a missing ConfigMap or Secret. If you use External Secrets Operator,  kubectl get externalsecret  shows whether the sync actually worked.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article