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.
More on EKS in Production
Managed node groups, self-managed nodes, Fargate, Karpenter or Auto Mode: how do you choose?IntermediateHow do you design Karpenter NodePools for production?AdvancedIRSA or EKS Pod Identity for new clusters?IntermediateHow do you manage who can access the EKS API?IntermediateHow do you run EKS version upgrades safely?AdvancedWhat happens if you stay on an old EKS version?Beginner