cdk-eks-blueprints icon indicating copy to clipboard operation
cdk-eks-blueprints copied to clipboard

Provide examples to launch clusters with EC2 Spot Instances

Open chrismld opened this issue 3 years ago • 4 comments

Describe the feature

There are no explicit examples on how to create clusters using EC2 Spot Instances.

Use Case

A set of examples with Spot instances when using managed node groups, self-managed node groups, and Karpenter.

Proposed Solution

No response

Other Information

I'm already working in the Terraform blueprint, so I plan to use similar examples for CDK.

Acknowledgements

  • [X] I may be able to implement this feature request

CDK version used

2.24.0

EKS Blueprints Version

No response

Node.js Version

v16.13.2

Environment details (OS name and version, etc.)

Mac Monterey

chrismld avatar May 12 '22 15:05 chrismld

Great, we definitely need those. They may be more suitable for the patterns repo. We have a small example here. But nothing with Karpenter and self-managed.

shapirov103 avatar May 12 '22 17:05 shapirov103

@shapirov103 should I create the examples in the pattern repository then? I'll need to change a few things in this repository so I'll keep this one.

chrismld avatar May 12 '22 17:05 chrismld

@christianhxc yes, the example should be in the patterns repo, but should definitely document it better. So doc update here with the link to the pattern. Also please let me know what changes you would like to apply to the framework. I have just refactored both mng and asg nodegroup support to include more options, this will be merged very soon.

shapirov103 avatar May 12 '22 18:05 shapirov103

@shapirov103 I haven't looked in depth at this repo but I can tell you the changes I made for ASGs in the Terraform one: add support for mixed instance group policies, replicate Kubernetes labels into ASGs labels (cluster-autoscaler needs those to downscale to zero nodes if needed), a flag to enable capacity rebalance, and a variable to define the Spot allocation strategy.

chrismld avatar May 13 '22 11:05 chrismld

This issue has been automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] avatar Jul 22 '23 00:07 github-actions[bot]

Issue closed due to inactivity.

github-actions[bot] avatar Sep 20 '23 00:09 github-actions[bot]