| Modifier and Type | Method and Description |
|---|---|
Nodegroup.Builder |
amiType(NodegroupAmiType amiType)
The AMI type for your node group.
|
Nodegroup |
build() |
Nodegroup.Builder |
capacityType(CapacityType capacityType)
The capacity type of the nodegroup.
|
Nodegroup.Builder |
cluster(ICluster cluster)
Cluster resource.
|
static Nodegroup.Builder |
create(software.constructs.Construct scope,
String id) |
Nodegroup.Builder |
desiredSize(Number desiredSize)
The current number of worker nodes that the managed node group should maintain.
|
Nodegroup.Builder |
diskSize(Number diskSize)
The root device disk size (in GiB) for your node group instances.
|
Nodegroup.Builder |
forceUpdate(Boolean forceUpdate)
Force the update if the existing node group's pods are unable to be drained due to a pod disruption budget issue.
|
Nodegroup.Builder |
instanceType(InstanceType instanceType)
Deprecated.
Use `instanceTypes` instead.
|
Nodegroup.Builder |
instanceTypes(List<? extends InstanceType> instanceTypes)
The instance types to use for your node group.
|
Nodegroup.Builder |
labels(Map<String,String> labels)
The Kubernetes labels to be applied to the nodes in the node group when they are created.
|
Nodegroup.Builder |
launchTemplateSpec(LaunchTemplateSpec launchTemplateSpec)
Launch template specification used for the nodegroup.
|
Nodegroup.Builder |
maxSize(Number maxSize)
The maximum number of worker nodes that the managed node group can scale out to.
|
Nodegroup.Builder |
minSize(Number minSize)
The minimum number of worker nodes that the managed node group can scale in to.
|
Nodegroup.Builder |
nodegroupName(String nodegroupName)
Name of the Nodegroup.
|
Nodegroup.Builder |
nodeRole(IRole nodeRole)
The IAM role to associate with your node group.
|
Nodegroup.Builder |
releaseVersion(String releaseVersion)
The AMI version of the Amazon EKS-optimized AMI to use with your node group (for example, `1.14.7-YYYYMMDD`).
|
Nodegroup.Builder |
remoteAccess(NodegroupRemoteAccess remoteAccess)
The remote access (SSH) configuration to use with your node group.
|
Nodegroup.Builder |
subnets(SubnetSelection subnets)
The subnets to use for the Auto Scaling group that is created for your node group.
|
Nodegroup.Builder |
tags(Map<String,String> tags)
The metadata to apply to the node group to assist with categorization and organization.
|
Nodegroup.Builder |
taints(List<? extends TaintSpec> taints)
The Kubernetes taints to be applied to the nodes in the node group when they are created.
|
@Stability(value=Stable) public static Nodegroup.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.Nodegroup.Builder.@Stability(value=Stable) public Nodegroup.Builder amiType(NodegroupAmiType amiType)
If you explicitly specify the launchTemplate with custom AMI, do not specify this property, or the node group deployment will fail. In other cases, you will need to specify correct amiType for the nodegroup.
Default: - auto-determined from the instanceTypes property when launchTemplateSpec property is not specified
amiType - The AMI type for your node group. This parameter is required.this@Stability(value=Stable) public Nodegroup.Builder capacityType(CapacityType capacityType)
Default: - ON_DEMAND
capacityType - The capacity type of the nodegroup. This parameter is required.this@Stability(value=Stable) public Nodegroup.Builder desiredSize(Number desiredSize)
If not specified,
the nodewgroup will initially create minSize instances.
Default: 2
desiredSize - The current number of worker nodes that the managed node group should maintain. This parameter is required.this@Stability(value=Stable) public Nodegroup.Builder diskSize(Number diskSize)
Default: 20
diskSize - The root device disk size (in GiB) for your node group instances. This parameter is required.this@Stability(value=Stable) public Nodegroup.Builder forceUpdate(Boolean forceUpdate)
If an update fails because pods could not be drained, you can force the update after it fails to terminate the old node whether or not any pods are running on the node.
Default: true
forceUpdate - Force the update if the existing node group's pods are unable to be drained due to a pod disruption budget issue. This parameter is required.this@Stability(value=Deprecated) @Deprecated public Nodegroup.Builder instanceType(InstanceType instanceType)
Currently, you can specify a single instance type for a node group.
The default value for this parameter is t3.medium. If you choose a GPU instance type, be sure to specify the
AL2_x86_64_GPU with the amiType parameter.
Default: t3.medium
instanceType - The instance type to use for your node group. This parameter is required.this@Stability(value=Stable) public Nodegroup.Builder instanceTypes(List<? extends InstanceType> instanceTypes)
Default: t3.medium will be used according to the cloudformation document.
instanceTypes - The instance types to use for your node group. This parameter is required.this@Stability(value=Stable) public Nodegroup.Builder labels(Map<String,String> labels)
Default: - None
labels - The Kubernetes labels to be applied to the nodes in the node group when they are created. This parameter is required.this@Stability(value=Stable) public Nodegroup.Builder launchTemplateSpec(LaunchTemplateSpec launchTemplateSpec)
Default: - no launch template
launchTemplateSpec - Launch template specification used for the nodegroup. This parameter is required.this@Stability(value=Stable) public Nodegroup.Builder maxSize(Number maxSize)
Managed node groups can support up to 100 nodes by default.
Default: - desiredSize
maxSize - The maximum number of worker nodes that the managed node group can scale out to. This parameter is required.this@Stability(value=Stable) public Nodegroup.Builder minSize(Number minSize)
This number must be greater than or equal to zero.
Default: 1
minSize - The minimum number of worker nodes that the managed node group can scale in to. This parameter is required.this@Stability(value=Stable) public Nodegroup.Builder nodegroupName(String nodegroupName)
Default: - resource ID
nodegroupName - Name of the Nodegroup. This parameter is required.this@Stability(value=Stable) public Nodegroup.Builder nodeRole(IRole nodeRole)
The Amazon EKS worker node kubelet daemon makes calls to AWS APIs on your behalf. Worker nodes receive permissions for these API calls through an IAM instance profile and associated policies. Before you can launch worker nodes and register them into a cluster, you must create an IAM role for those worker nodes to use when they are launched.
Default: - None. Auto-generated if not specified.
nodeRole - The IAM role to associate with your node group. This parameter is required.this@Stability(value=Stable) public Nodegroup.Builder releaseVersion(String releaseVersion)
Default: - The latest available AMI version for the node group's current Kubernetes version is used.
releaseVersion - The AMI version of the Amazon EKS-optimized AMI to use with your node group (for example, `1.14.7-YYYYMMDD`). This parameter is required.this@Stability(value=Stable) public Nodegroup.Builder remoteAccess(NodegroupRemoteAccess remoteAccess)
Disabled by default, however, if you specify an Amazon EC2 SSH key but do not specify a source security group when you create a managed node group, then port 22 on the worker nodes is opened to the internet (0.0.0.0/0)
Default: - disabled
remoteAccess - The remote access (SSH) configuration to use with your node group. This parameter is required.this@Stability(value=Stable) public Nodegroup.Builder subnets(SubnetSelection subnets)
By specifying the
SubnetSelection, the selected subnets will automatically apply required tags i.e.
kubernetes.io/cluster/CLUSTER_NAME with a value of shared, where CLUSTER_NAME is replaced with
the name of your cluster.
Default: - private subnets
subnets - The subnets to use for the Auto Scaling group that is created for your node group. This parameter is required.this@Stability(value=Stable) public Nodegroup.Builder tags(Map<String,String> tags)
Each tag consists of a key and an optional value, both of which you define. Node group tags do not propagate to any other resources associated with the node group, such as the Amazon EC2 instances or subnets.
Default: - None
tags - The metadata to apply to the node group to assist with categorization and organization. This parameter is required.this@Stability(value=Stable) public Nodegroup.Builder taints(List<? extends TaintSpec> taints)
Default: - None
taints - The Kubernetes taints to be applied to the nodes in the node group when they are created. This parameter is required.this@Stability(value=Stable) public Nodegroup.Builder cluster(ICluster cluster)
cluster - Cluster resource. This parameter is required.thisCopyright © 2022. All rights reserved.