pulumi-eks icon indicating copy to clipboard operation
pulumi-eks copied to clipboard

How to configure "max-pods-per-node" when creating a manged node group?

Open davidroth opened this issue 4 years ago • 3 comments

In order to increase pod-density, I am trying to configure the "max-pods-per-node" setting when creating a managed node group. It seems that the "createManagedNodeGroup" from "pulumi/eks" has no support for this. Can somebody tell me, how to set the "max-pods-per-node" setting, when creating a managed eks node group with pulumi?

https://docs.aws.amazon.com/eks/latest/userguide/cni-increase-ip-addresses.html

This is how it works using eksctl: image

The doc also says:

If you prefer to use a different tool to deploy your managed node group, then you must deploy the node group using a launch template. In your launch template, specify an Amazon EKS optimized AMI ID, then deploy the node group using a launch template and provide the following user data. This user data passes arguments into the bootstrap.sh file. For more information about the bootstrap file, see bootstrap.sh on GitHub.

image

Unfortunately, NodeGroupLaunchTemplate doesnt support kubelet-etra-args 🤔

image

Any ideas?

davidroth avatar Aug 09 '21 09:08 davidroth

After looking at the code in nodegroup.ts, noticed that NodeGroup already supports kubeletExtraArgs?: string;. Exactly what I need for the managed node group api. Unfortunately, the managed node group api is very limited and has no kubeletExtraArgs.

davidroth avatar Aug 10 '21 14:08 davidroth

If this is the case why isn't this reflecting in nodegroup.d.ts in the @pulumi/eks package ? This is causing the typescript to fail static checks .

defyjoy avatar May 10 '22 19:05 defyjoy

So we should stop recommending Pulumi to newcomers looking to do IaC with EKS... or is there a known workaround or manual step one can take?

WP-LKL avatar Mar 21 '23 14:03 WP-LKL