How to increase pod number limit in eks (with terraform-aws-modules)
This article shows how can we increase the limit of pod number in eks cluster by adding some environment variable in terraform-aws-modules.

You can increase pod number limit in eks worker node by adding environment variable in terraform-aws-modules
.
In terraform-aws-modules
you can use cluster-addons
for installing cluster addons for your eks cluster, and you can inject some environment variable in cluster-addons
member object.
So we can inject environment variable in vpc-cni
addon like following code snippet. You should read the attached amazon-vpc-cni-k8s
link and you need to decide WARM_PREFIX_TARGET
WARM_IP_TARGET
, MINIMUM_IP_TARGET
values.
amazon-vpc-cni-k8s document : https://github.com/aws/amazon-vpc-cni-k8s/blob/master/docs/prefix-and-ip-target.md
cluster-addons 에서의 vpc-cni
영역에 환경변수 설정을 주입해서 ENABLE_PREFIX_DELEGATION=true
로, WARM_IP_TARGET
, MINIMUM_IP_TARGET
등은 각자 상황에 맞게 (https://github.com/aws/amazon-vpc-cni-k8s/blob/master/docs/prefix-and-ip-target.md 참고)