Interview Prep/AWS/EKS in Production

How do you give pods their own security groups, and what does it cost?

AdvancedProductionEKS in Production
Answer

Security groups for pods: enable ENABLE_POD_ENI=true on the VPC CNI and create a SecurityGroupPolicy selecting pods by label. Those pods get a branch ENI with their own SGs, so an RDS SG can allow only the payments pods, not every node. Costs: supported only on Nitro instance types, branch ENI limits per instance reduce pod density, and pod startup is slightly slower. Use it for the few workloads that need SG-level isolation, NetworkPolicy for the rest.

aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on EKS in Production