-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Accept InstanceDistribution with only one instance type. #1772
Conversation
ff3d51b
to
10e79ee
Compare
10e79ee
to
64abd1d
Compare
@martina-if Hi, would you please review this PR? |
Hi @ryotarai , last time I checked this wasn't supported with MixedInstances, do you have a link to some docs where it says now this is supported? (it was supported through another mechanism though https://github.com/weaveworks/eksctl/pull/781/files) |
Thank you for reviewing.
https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_LaunchTemplate.html This page says instancesDistribution:
instanceTypes: ["c5.large"]
spotInstancePools: 1
onDemandBaseCapacity: 0
onDemandPercentageAboveBaseCapacity: 0
I didn't notice that. Thank you. |
This is great! Apparently they changed that in October. Ok, two tiny details to complete the PR:
Can you please fix the comment in those two files^? It says minimum 2 instance types. Then if you rebase I'll approve and merge it :) Thanks a lot! |
64abd1d
to
5d9436d
Compare
I've updated the example and doc and rebased this to master branch: 5d9436d |
Hi @ryotarai , yes it would be great if you could squash them :) |
5d9436d
to
2cc4936
Compare
I've squashed commits into 2cc4936 |
2cc4936
to
69f22dc
Compare
Thank you @ryotarai ! |
Description
Currently, InstanceDistribution must have more than or equal to 2 instance types but AWS auto scaling API accepts configuration with only one instance type too. This PR makes InstanceDistribution accept that case.
Q. Why we do not use just
instanceType
of nodegroup?We want to launch spot instances with one instance type.
Checklist
README.md
, andexamples
directory)area/nodegroup
) and target version (e.g.version/0.12.0
)docs/release_notes/draft.md
(or relevant release note)