How do you debug "Pods unable to pull from ECR" in EKS?
AdvancedProductionEKS in Production
Answer
Look at kubectl describe pod for ErrImagePull: no basic auth credentials (node role lacks ECR permissions), i/o timeout (no route to ECR/S3 endpoints: NAT or VPC endpoints for ecr.api, ecr.dkr, and S3 gateway endpoint), denied (cross-account repo policy), or manifest unknown (wrong tag/arch). Check the node's role and run aws ecr get-login-password from a debug context.
More on EKS in Production
How do you create a production EKS cluster in a repeatable way?BeginnerWhich subnets and AZs should an EKS cluster use?BeginnerHow do you give an EKS Pod access to S3 safely?BeginnerWhich EKS control-plane logs do you enable and why?BeginnerWhat are the EKS service limits that most often bite?BeginnerHow should the cluster be exposed publicly?Beginner