Interface IAutoScalingGroupOptions
Options for adding an AutoScalingGroup as capacity.
Namespace: Amazon.CDK.AWS.EKS
Assembly: Amazon.CDK.AWS.EKS.dll
Syntax (csharp)
public interface IAutoScalingGroupOptions
Syntax (vb)
Public Interface IAutoScalingGroupOptions
Remarks
ExampleMetadata: infused
Examples
Cluster cluster;
AutoScalingGroup asg;
cluster.ConnectAutoScalingGroupCapacity(asg, new AutoScalingGroupOptions { });
Synopsis
Properties
BootstrapEnabled | Configures the EC2 user-data script for instances in this autoscaling group to bootstrap the node (invoke |
BootstrapOptions | Allows options for node bootstrapping through EC2 user data. |
MachineImageType | Allow options to specify different machine image type. |
MapRole | Will automatically update the aws-auth ConfigMap to map the IAM instance role to RBAC. |
SpotInterruptHandler | Installs the AWS spot instance interrupt handler on the cluster if it's not already added. |
Properties
BootstrapEnabled
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.
virtual Nullable<bool> BootstrapEnabled { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
If you wish to provide a custom user data script, set this to false
and
manually invoke autoscalingGroup.addUserData()
.
Default: true
BootstrapOptions
Allows options for node bootstrapping through EC2 user data.
virtual IBootstrapOptions BootstrapOptions { get; }
Property Value
Remarks
Default: - default options
MachineImageType
Allow options to specify different machine image type.
virtual Nullable<MachineImageType> MachineImageType { get; }
Property Value
System.Nullable<MachineImageType>
Remarks
Default: MachineImageType.AMAZON_LINUX_2
MapRole
Will automatically update the aws-auth ConfigMap to map the IAM instance role to RBAC.
virtual Nullable<bool> MapRole { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
This cannot be explicitly set to true
if the cluster has kubectl disabled.
Default: - true if the cluster has kubectl enabled (which is the default).
SpotInterruptHandler
Installs the AWS spot instance interrupt handler on the cluster if it's not already added.
virtual Nullable<bool> SpotInterruptHandler { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Only relevant if spotPrice
is configured on the auto-scaling group.
Default: true