-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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-eks: addNodegroupCapacity with standard AMI, custom launch template, and kubelet-extra-args #27354
Comments
The "official" way of doing this is through the use of BootstrapOptions: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks.BootstrapOptions.html#kubeletextraargs This is passed to addAutoScalingGroupCapacity: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks.Cluster.html#addwbrautowbrscalingwbrgroupwbrcapacityid-options Is there a reason you're using |
The primary reason is what's noted in the message regarding setting up the EC2's instance store, but looking at the bootstrap script I'm guessing the flag The secondary reason we're using const allowedInstanceTypes= [...];
this.cluster.addNodegroupCapacity("ng", {
instanceTypes: allowedInstanceTypes.map((i) => new ec2.InstanceType(`${i}.2xlarge`)),
capacityType: eks.CapacityType.SPOT,
}); Assuming that flag sets up the instance store, I think being able to specify multiple instance types would be the only thing preventing us from using |
@pahud - in issue #29983 (comment) you note |
What addNodeGroupCapacity does is essentially |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Describe the feature
For our
NodeGroups
, we're providing a custom launch template to activate the EC2's instance store volume:Which is then referenced like so:
The actual launch template user data will also contain this:
For this scenario, what's the best way to provide additional flags for
kubelet-extra-args
? In the documentation it looked like the example pertained to custom AMIs opposed to the standardUse Case
I'm looking to provide
--logging-format=json
, but I'm not sure the best route to go with the standard AMI with a custom launch templateProposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.84.0
Environment details (OS name and version, etc.)
linux
The text was updated successfully, but these errors were encountered: