Class AutoScalingGroupOptions
Options for adding an AutoScalingGroup as capacity.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EKS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AutoScalingGroupOptions : Object, IAutoScalingGroupOptions
Syntax (vb)
Public Class AutoScalingGroupOptions
Inherits Object
Implements IAutoScalingGroupOptions
Remarks
ExampleMetadata: infused
Examples
Cluster cluster;
AutoScalingGroup asg;
cluster.ConnectAutoScalingGroupCapacity(asg, new AutoScalingGroupOptions { });
Synopsis
Constructors
Auto |
Properties
Bootstrap |
Configures the EC2 user-data script for instances in this autoscaling group to bootstrap the node (invoke |
Bootstrap |
Allows options for node bootstrapping through EC2 user data. |
Machine |
Allow options to specify different machine image type. |
Map |
Will automatically update the aws-auth ConfigMap to map the IAM instance role to RBAC. |
Spot |
Installs the AWS spot instance interrupt handler on the cluster if it's not already added. |
Constructors
AutoScalingGroupOptions()
public AutoScalingGroupOptions()
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.
public Nullable<bool> BootstrapEnabled { get; set; }
Property Value
System.
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.
public IBootstrapOptions BootstrapOptions { get; set; }
Property Value
Remarks
Default: - default options
MachineImageType
Allow options to specify different machine image type.
public Nullable<MachineImageType> MachineImageType { get; set; }
Property Value
System.
Remarks
Default: MachineImageType.AMAZON_LINUX_2
MapRole
Will automatically update the aws-auth ConfigMap to map the IAM instance role to RBAC.
public Nullable<bool> MapRole { get; set; }
Property Value
System.
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.
public Nullable<bool> SpotInterruptHandler { get; set; }
Property Value
System.
Remarks
Only relevant if spotPrice
is configured on the auto-scaling group.
Default: true