Interview Prep/Kubernetes/EKS and cluster operations

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 →

  1. Create VPC endpoints for ECR API, ECR DKR and S3 gateway endpoint
  2. Add endpoints for STS, EC2 and logs as needed
  3. Check endpoint security groups allow 443
  4. Verify with crictl pull
  5. Use pull-through cache for public images

Why → Private endpoints keep traffic inside AWS.

Interview tip → Don't forget the S3 gateway endpoint.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on EKS and cluster operations