interface AutoScalingGroupOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Eks.V2.Alpha.AutoScalingGroupOptions |
![]() | github.com/aws/aws-cdk-go/awscdkeks-v2alpha/v2#AutoScalingGroupOptions |
![]() | software.amazon.awscdk.services.eks.v2.alpha.AutoScalingGroupOptions |
![]() | aws_cdk.aws_eks_v2_alpha.AutoScalingGroupOptions |
![]() | @aws-cdk/aws-eks-v2-alpha ยป AutoScalingGroupOptions |
Options for adding an AutoScalingGroup as capacity.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as eks_v2_alpha from '@aws-cdk/aws-eks-v2-alpha';
const autoScalingGroupOptions: eks_v2_alpha.AutoScalingGroupOptions = {
bootstrapEnabled: false,
bootstrapOptions: {
additionalArgs: 'additionalArgs',
awsApiRetryAttempts: 123,
dnsClusterIp: 'dnsClusterIp',
dockerConfigJson: 'dockerConfigJson',
enableDockerBridge: false,
kubeletExtraArgs: 'kubeletExtraArgs',
useMaxPods: false,
},
machineImageType: eks_v2_alpha.MachineImageType.AMAZON_LINUX_2,
};
Properties
Name | Type | Description |
---|---|---|
bootstrap | boolean | Configures the EC2 user-data script for instances in this autoscaling group to bootstrap the node (invoke /etc/eks/bootstrap.sh ) and associate it with the EKS cluster. |
bootstrap | Bootstrap | Allows options for node bootstrapping through EC2 user data. |
machine | Machine | Allow options to specify different machine image type. |
bootstrapEnabled?
Type:
boolean
(optional, default: true)
Configures the EC2 user-data script for instances in this autoscaling group to bootstrap the node (invoke /etc/eks/bootstrap.sh
) and associate it with the EKS cluster.
If you wish to provide a custom user data script, set this to false
and
manually invoke autoscalingGroup.addUserData()
.
bootstrapOptions?
Type:
Bootstrap
(optional, default: default options)
Allows options for node bootstrapping through EC2 user data.
machineImageType?
Type:
Machine
(optional, default: MachineImageType.AMAZON_LINUX_2)
Allow options to specify different machine image type.