-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb3ee5c
commit 4e90d25
Showing
4 changed files
with
151 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
AWSTemplateFormatVersion: '2010-09-09' | ||
Description: 'Unmanaged EKS nodegroup using EC2 AutoScaling' | ||
Parameters: | ||
ClusterName: | ||
Type: String | ||
Description: Name of EKS cluster. | ||
AutoScalingGroupName: | ||
Description: Name of ASG. | ||
Type: String | ||
VpcId: | ||
Type: AWS::EC2::VPC::Id | ||
SubnetIds: | ||
Type: List<AWS::EC2::Subnet::Id> | ||
SecurityGroup: | ||
Type: AWS::EC2::SecurityGroup::Id | ||
LaunchTemplateName: | ||
Type: String | ||
Description: Launch template name. | ||
LaunchTemplateVersion: | ||
Type: String | ||
Description: Launch template version. Default is 1, since our launch templates are generally ephemeral/single-use. | ||
Default: "1" | ||
NodeCount: | ||
Type: Number | ||
Resources: | ||
AutoScalingGroup: | ||
Type: AWS::AutoScaling::AutoScalingGroup | ||
UpdatePolicy: | ||
AutoScalingRollingUpdate: | ||
WaitOnResourceSignals: true | ||
PauseTime: PT15M | ||
Properties: | ||
AutoScalingGroupName: !Ref AutoScalingGroupName | ||
DesiredCapacity: !Ref NodeCount | ||
MinSize: !Ref NodeCount | ||
MaxSize: !Ref NodeCount | ||
MixedInstancesPolicy: | ||
LaunchTemplate: | ||
LaunchTemplateSpecification: | ||
LaunchTemplateName: !Ref LaunchTemplateName | ||
Version: !Ref LaunchTemplateVersion | ||
# this will be replaced out-of-band, CFN really doesn't want you to pass in sub-structs as JSON | ||
Overrides: PLACEHOLDER_LAUNCH_TEMPLATE_OVERRIDES | ||
VPCZoneIdentifier: | ||
!Ref SubnetIds | ||
Tags: | ||
# necessary for kubelet's legacy, in-tree cloud provider | ||
- Key: !Sub kubernetes.io/cluster/${ClusterName} | ||
Value: owned | ||
PropagateAtLaunch: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters