How do you restrict an EKS node group to private subnets but pull images from ECR?
IntermediateScenarioEKS and cluster operations
Answer
Situation read → Nodes have no internet path.
What I'd do →
- Create VPC endpoints for ECR API, ECR DKR and S3 gateway endpoint
- Add endpoints for STS, EC2 and logs as needed
- Check endpoint security groups allow 443
- Verify with
crictl pull - Use pull-through cache for public images
Why → Private endpoints keep traffic inside AWS.
Interview tip → Don't forget the S3 gateway endpoint.
More on EKS and cluster operations
How do you create a production-ready EKS cluster and what do you decide up front?BeginnerPods on EKS run out of IP addresses. What happened and how do you fix it?IntermediateHow do you give a new engineer access to an EKS cluster?IntermediateCompare managed node groups, self-managed nodes, Fargate and Karpenter.IntermediateHow do you upgrade an EKS cluster from 1.31 to 1.32 with minimal risk?AdvancedA node group upgrade is slow or stuck on EKS. What do you look at?Intermediate