Interface IAutoScalingGroupCapacityOptions
(experimental) Options for adding worker nodes.
Inherited Members
Namespace: Amazon.CDK.AWS.Eks.V2.Alpha
Assembly: Amazon.CDK.AWS.Eks.V2.Alpha.dll
Syntax (csharp)
public interface IAutoScalingGroupCapacityOptions : ICommonAutoScalingGroupProps
Syntax (vb)
Public Interface IAutoScalingGroupCapacityOptions Inherits ICommonAutoScalingGroupProps
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
var cluster = new Cluster(this, "SelfManagedCluster", new ClusterProps {
Version = KubernetesVersion.V1_34
});
// Add self-managed Auto Scaling Group
cluster.AddAutoScalingGroupCapacity("self-managed-asg", new AutoScalingGroupCapacityOptions {
InstanceType = InstanceType.Of(InstanceClass.T3, InstanceSize.MEDIUM),
MinCapacity = 1,
MaxCapacity = 5
});
Synopsis
Properties
| BootstrapEnabled | (experimental) Configures the EC2 user-data script for instances in this autoscaling group to bootstrap the node (invoke |
| BootstrapOptions | (experimental) EKS node bootstrapping options. |
| InstanceType | (experimental) Instance type of the instances to start. |
| MachineImageType | (experimental) Machine image type. |
Properties
BootstrapEnabled
(experimental) 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.
bool? BootstrapEnabled { get; }
Property Value
bool?
Remarks
If you wish to provide a custom user data script, set this to false and
manually invoke autoscalingGroup.addUserData().
Default: true
Stability: Experimental
BootstrapOptions
(experimental) EKS node bootstrapping options.
IBootstrapOptions? BootstrapOptions { get; }
Property Value
Remarks
Default: - none
Stability: Experimental
InstanceType
(experimental) Instance type of the instances to start.
InstanceType InstanceType { get; }
Property Value
Remarks
Stability: Experimental
MachineImageType
(experimental) Machine image type.
MachineImageType? MachineImageType { get; }
Property Value
Remarks
Default: MachineImageType.AMAZON_LINUX_2
Stability: Experimental