Open uyilmaz opened 1 week ago
r6g.medium supports 4 branch interface . https://github.com/aws/amazon-vpc-resource-controller-k8s/blob/master/pkg/aws/vpc/limits.go#L9658. So you can deploy 4 pods using Security group per node. Let us know if this condition is not satisfied.
@yash97 Thanks for answering!
Doesn't prefix delegation increase that limit? Does it only help when pods don't use security groups?
@uyilmaz , prefix delegation increases only number the number of IP addresses. In this case with Pods using Security Groups, each pod will take a branch interface and you are limited by the number of branch interfaces in your instance.
What happened:
I have an EKS cluster with a single worker node of type
r6g.medium
. I want to run many small pods on it so I setENABLE_PREFIX_DELEGATION
to true to increase the amount of IP's. I'm also using security groups for pods at the same time.In the node events I can see that trunk interface is attached:
In the ipamd.log file I can see these lines:
There are 11 pods currently in
Running
state, including aws system pods likeaws-node
. 12th pod I deploy gets stuck atPending
state , sayingCNI Metrics helper shows these stats on cloudwatch:
Environment:
kubectl version
): v1.31.2-eks-7f9249acat /etc/os-release
): Amazon Linux 2uname -a
):Linux ip-x-x-xxx-xx.ap-northeast-1.compute.internal x.xx.xxx-xxx.xxx.amzn2.aarch64 #1 SMP Tue Oct 22 16:38:25 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux