Class NodegroupAmiType
The AMI type for your node group.
Inheritance
System.Object
NodegroupAmiType
Namespace: Amazon.CDK.AWS.EKS
Assembly: Amazon.CDK.AWS.EKS.dll
Syntax (csharp)
public sealed class NodegroupAmiType : Enum
Syntax (vb)
Public NotInheritable Class NodegroupAmiType
Inherits
Enum
Remarks
GPU instance types should use the AL2_x86_64_GPU
AMI type, which uses the
Amazon EKS-optimized Linux AMI with GPU support. Non-GPU instances should use the AL2_x86_64
AMI type, which
uses the Amazon EKS-optimized Linux AMI.
ExampleMetadata: infused
Examples
var cluster = new Cluster(this, "HelloEKS", new ClusterProps {
Version = KubernetesVersion.V1_21,
DefaultCapacity = 0
});
cluster.AddNodegroupCapacity("custom-node-group", new NodegroupOptions {
InstanceTypes = new [] { new InstanceType("m5.large") },
MinSize = 4,
DiskSize = 100,
AmiType = NodegroupAmiType.AL2_X86_64_GPU
});
Synopsis
Fields
AL2_ARM_64 | Amazon Linux 2 (ARM-64). |
AL2_X86_64 | Amazon Linux 2 (x86-64). |
AL2_X86_64_GPU | Amazon Linux 2 with GPU support. |
BOTTLEROCKET_ARM_64 | Bottlerocket Linux(ARM-64). |
BOTTLEROCKET_X86_64 | Bottlerocket(x86-64). |
value__ |
Fields
AL2_ARM_64
Amazon Linux 2 (ARM-64).
public const NodegroupAmiType AL2_ARM_64
Field Value
Type | Description |
---|---|
NodegroupAmiType |
AL2_X86_64
Amazon Linux 2 (x86-64).
public const NodegroupAmiType AL2_X86_64
Field Value
Type | Description |
---|---|
NodegroupAmiType |
AL2_X86_64_GPU
Amazon Linux 2 with GPU support.
public const NodegroupAmiType AL2_X86_64_GPU
Field Value
Type | Description |
---|---|
NodegroupAmiType |
BOTTLEROCKET_ARM_64
Bottlerocket Linux(ARM-64).
public const NodegroupAmiType BOTTLEROCKET_ARM_64
Field Value
Type | Description |
---|---|
NodegroupAmiType |
BOTTLEROCKET_X86_64
Bottlerocket(x86-64).
public const NodegroupAmiType BOTTLEROCKET_X86_64
Field Value
Type | Description |
---|---|
NodegroupAmiType |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |