interface AutoScalingGroupOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EKS.Legacy.AutoScalingGroupOptions |
Java | software.amazon.awscdk.services.eks.legacy.AutoScalingGroupOptions |
Python | aws_cdk.aws_eks_legacy.AutoScalingGroupOptions |
TypeScript (source) | @aws-cdk/aws-eks-legacy » AutoScalingGroupOptions |
⚠️ Deprecated: undefined
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_legacy from '@aws-cdk/aws-eks-legacy';
const autoScalingGroupOptions: eks_legacy.AutoScalingGroupOptions = {
bootstrapEnabled: false,
bootstrapOptions: {
additionalArgs: 'additionalArgs',
awsApiRetryAttempts: 123,
dockerConfigJson: 'dockerConfigJson',
enableDockerBridge: false,
kubeletExtraArgs: 'kubeletExtraArgs',
useMaxPods: false,
},
mapRole: false,
};
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. |
map | boolean | Will automatically update the aws-auth ConfigMap to map the IAM instance role to RBAC. |
bootstrapEnabled?
⚠️ Deprecated: undefined
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?
⚠️ Deprecated: undefined
Type:
Bootstrap
(optional)
Allows options for node bootstrapping through EC2 user data.
mapRole?
⚠️ Deprecated: undefined
Type:
boolean
(optional, default: true if the cluster has kubectl enabled (which is the default).)
Will automatically update the aws-auth ConfigMap to map the IAM instance role to RBAC.
This cannot be explicitly set to true
if the cluster has kubectl disabled.