Updated private and public subnet ranges for VPC in EKS #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change increases the default HCN VPC Subnet for all users. This is to avoid running our of IP addresses when deploying a large cluster (>100 nodes).
All pods and nodes created using the TF module share the same subnet. There are 6 - 3 public subnets and 3 private subnets each in a zone. We need to split the /16 (cidr_block) into 6. With /24 subnet mask we were under-utilizing the IP address space.
Number of IP Addresses available under /19 subnet mask is 8,192.
With /24, we had 256*3=768 ip addresses available each for private and public subnet.
If we consider 100 node cluster = 100 ip addresses (1 for each node).
Each node can have at max 44 pods so about 44 * 100 = 4400 ip addresses. So total we need about 4500 ip addresses.
This is default value that should be able to support atleast 180 node cluster with 8192 IP addresses without running out of ip addresses. If someone wants to create a cluster bigger than this then they can update this value.