Interface IAutoScalingGroupCapacityOptions
Options for adding worker nodes.
Inherited Members
Namespace: Amazon.CDK.AWS.EKS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IAutoScalingGroupCapacityOptions : ICommonAutoScalingGroupProps
Syntax (vb)
Public Interface IAutoScalingGroupCapacityOptions
Inherits ICommonAutoScalingGroupProps
Remarks
ExampleMetadata: infused
Examples
Cluster cluster;
cluster.AddAutoScalingGroupCapacity("BottlerocketNodes", new AutoScalingGroupCapacityOptions {
InstanceType = new InstanceType("t3.small"),
MinCapacity = 2,
MachineImageType = MachineImageType.BOTTLEROCKET
});
Synopsis
Properties
BootstrapEnabled | Configures the EC2 user-data script for instances in this autoscaling group to bootstrap the node (invoke |
BootstrapOptions | EKS node bootstrapping options. |
InstanceType | Instance type of the instances to start. |
MachineImageType | 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
EKS node bootstrapping options.
virtual IBootstrapOptions BootstrapOptions { get; }
Property Value
Remarks
Default: - none
InstanceType
Instance type of the instances to start.
InstanceType InstanceType { get; }
Property Value
MachineImageType
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 used.
Default: true