-
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 f9be768
Showing
4 changed files
with
150 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,50 @@ | ||
--- | ||
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: "$Default" | ||
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: "1" | ||
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