-
Notifications
You must be signed in to change notification settings - Fork 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
feat(aws-eks): add construct library for EKS #1655
Conversation
Original work done by @IPyandy
Generalize and conformize adding AutoScalingGroup capacity to both ECS and EKS clusters, as well as naming consistency among variables and with Application AutoScaling. BREAKING CHANGE: For `AutoScalingGroup`, renamed `minSize` => `minCapacity`, `maxSize` => `maxCapacity`, for consistency with `desiredCapacity` and also Application AutoScaling. For ECS's `addDefaultAutoScalingGroupCapacity()`, `instanceCount` => `desiredCapacity` and the function now takes an ID (pass `"DefaultAutoScalingGroup"` to avoid interruption to your deployments).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks fair to me... @SoManyHs gets the last word 😄
* | ||
* The nodes will automatically be configured with the right VPC and AMI | ||
* for the instance type and Kubernetes version. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should also be possible to do via ctor (thinking of deCDK)
* | ||
* Prefer to use `addWorkerNodes` if possible. | ||
*/ | ||
public addAutoScalingGroup(autoScalingGroup: autoscaling.AutoScalingGroup, options: AddAutoScalingGroupOptions) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is so awesome!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a link ref to what this is doing under the hood
Construct library to set up an EKS cluster and add nodes to it.
Generalizes adding AutoScalingGroup capacity and make it the same
between both ECS and EKS clusters. Fixes naming inconsistencies
among properties of
AutoScalingGroup
, and between EC2 AutoScaling andApplication AutoScaling.
This PR takes #991 but reimplements the API in the style of the ECS library.
BREAKING CHANGE: For
AutoScalingGroup
, renamedminSize
=>minCapacity
,maxSize
=>maxCapacity
, for consistency withdesiredCapacity
and also Application AutoScaling.For ECS's
addDefaultAutoScalingGroupCapacity()
,instanceCount
=>desiredCapacity
and the function now takes an ID (pass"DefaultAutoScalingGroup"
to avoid interruption to your deployments).Again, unit tests are lacking for now, would like feedback on the shape of the API first.
Pull Request Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.