Provide examples to launch clusters with EC2 Spot Instances
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
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 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.
@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 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.
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
Issue closed due to inactivity.