pulumi-eks
pulumi-eks copied to clipboard
How to configure "max-pods-per-node" when creating a manged node group?
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:

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.

Unfortunately, NodeGroupLaunchTemplate doesnt support kubelet-etra-args 🤔

Any ideas?
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.
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 .
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?