Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG and --use-max-pods #335

Closed
cnelson opened this issue Feb 28, 2019 · 1 comment
Closed

AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG and --use-max-pods #335

cnelson opened this issue Feb 28, 2019 · 1 comment

Comments

@cnelson
Copy link

cnelson commented Feb 28, 2019

I'm not sure if this issue belongs here or in awslabs/amazon-eks-ami but I'm running into an issue with the max pods being calculated incorrectly when running with AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG

When using a custom network config where the pods are on a different subnet than the host then the number of the available address (if I understand this correctly) is not as described in eni-max-pods.txt:

number of ENI * (# of IPv4 per ENI - 1) + 2

but should actually be:

number of ENI -1 * (# of IPv4 per ENI - 1) + 2`

because the primary interface can't be used to allocate addresses on the custom subnet.

This leads to pods being scheduled onto nodes that then get stuck in ContainerCreating as this plugin can't assign an address once all the secondary interfaces have been used up.

What's the recommended way to handle this?

@cnelson
Copy link
Author

cnelson commented Feb 28, 2019

Closing, this is a dupe of #331 - I didn't see it, apologies

@cnelson cnelson closed this as completed Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant