Why Are There No Free IP Addresses in My EKS Subnet?

0
15
Asked By CuriousCoder99 On

I've deployed under 650 Pods on less than 100 nodes in my EKS setup, all within a subnet that has a CIDR range of `10.0.20.0/22`. This configuration should theoretically offer up to 1024 IP addresses. Despite this, I'm getting a notification that no IP addresses are available. I'm trying to figure out what's consuming all the available IPs—any insights would be greatly appreciated!

2 Answers

Answered By SimpleDev21 On

A common mistake with EKS is not starting with a sufficiently large subnet. I'd recommend using at least a /19 CIDR block to avoid these problems in the future.

Answered By VPCExplorer99 On

Consider implementing a separate CIDR for your pods within the VPC. Look into using AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG and ENABLE_PREFIX_DELEGATION. This way, you can allocate a larger CIDR specifically for pods, enhancing IP allocation speed whenever a Pod starts! Just remember to manage the routing accordingly as your nodes will NAT traffic from pods to the internet (if you're using the default configuration).

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.