@Stability(value=Stable) @Internal public static final class NodegroupProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NodegroupProps
NodegroupPropssoftware.amazon.jsii.JsiiObject.InitializationModeNodegroupProps.Builder, NodegroupProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(NodegroupProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
NodegroupProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
NodegroupAmiType |
getAmiType()
The AMI type for your node group.
|
CapacityType |
getCapacityType()
The capacity type of the nodegroup.
|
ICluster |
getCluster()
Cluster resource.
|
Number |
getDesiredSize()
The current number of worker nodes that the managed node group should maintain.
|
Number |
getDiskSize()
The root device disk size (in GiB) for your node group instances.
|
Boolean |
getForceUpdate()
Force the update if the existing node group's pods are unable to be drained due to a pod disruption budget issue.
|
InstanceType |
getInstanceType()
(deprecated) The instance type to use for your node group.
|
List<InstanceType> |
getInstanceTypes()
The instance types to use for your node group.
|
Map<String,String> |
getLabels()
The Kubernetes labels to be applied to the nodes in the node group when they are created.
|
LaunchTemplateSpec |
getLaunchTemplateSpec()
Launch template specification used for the nodegroup.
|
Number |
getMaxSize()
The maximum number of worker nodes that the managed node group can scale out to.
|
Number |
getMinSize()
The minimum number of worker nodes that the managed node group can scale in to.
|
String |
getNodegroupName()
Name of the Nodegroup.
|
IRole |
getNodeRole()
The IAM role to associate with your node group.
|
String |
getReleaseVersion()
The AMI version of the Amazon EKS-optimized AMI to use with your node group (for example, `1.14.7-YYYYMMDD`).
|
NodegroupRemoteAccess |
getRemoteAccess()
The remote access (SSH) configuration to use with your node group.
|
SubnetSelection |
getSubnets()
The subnets to use for the Auto Scaling group that is created for your node group.
|
Map<String,String> |
getTags()
The metadata to apply to the node group to assist with categorization and organization.
|
List<TaintSpec> |
getTaints()
The Kubernetes taints to be applied to the nodes in the node group when they are created.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(NodegroupProps.Builder builder)
NodegroupProps.Builder.public final ICluster getCluster()
NodegroupPropsgetCluster in interface NodegroupPropspublic final NodegroupAmiType getAmiType()
NodegroupOptionsIf 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
getAmiType in interface NodegroupOptionspublic final CapacityType getCapacityType()
NodegroupOptionsDefault: - ON_DEMAND
getCapacityType in interface NodegroupOptionspublic final Number getDesiredSize()
NodegroupOptions
If not specified,
the nodewgroup will initially create minSize instances.
Default: 2
getDesiredSize in interface NodegroupOptionspublic final Number getDiskSize()
NodegroupOptionsDefault: 20
getDiskSize in interface NodegroupOptionspublic final Boolean getForceUpdate()
NodegroupOptionsIf 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
getForceUpdate in interface NodegroupOptionspublic final InstanceType getInstanceType()
NodegroupOptions
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
getInstanceType in interface NodegroupOptionspublic final List<InstanceType> getInstanceTypes()
NodegroupOptionsDefault: t3.medium will be used according to the cloudformation document.
public final Map<String,String> getLabels()
NodegroupOptionsDefault: - None
getLabels in interface NodegroupOptionspublic final LaunchTemplateSpec getLaunchTemplateSpec()
NodegroupOptionsDefault: - no launch template
getLaunchTemplateSpec in interface NodegroupOptionspublic final Number getMaxSize()
NodegroupOptionsManaged node groups can support up to 100 nodes by default.
Default: - desiredSize
getMaxSize in interface NodegroupOptionspublic final Number getMinSize()
NodegroupOptionsThis number must be greater than or equal to zero.
Default: 1
getMinSize in interface NodegroupOptionspublic final String getNodegroupName()
NodegroupOptionsDefault: - resource ID
getNodegroupName in interface NodegroupOptionspublic final IRole getNodeRole()
NodegroupOptionsThe 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.
getNodeRole in interface NodegroupOptionspublic final String getReleaseVersion()
NodegroupOptionsDefault: - The latest available AMI version for the node group's current Kubernetes version is used.
getReleaseVersion in interface NodegroupOptionspublic final NodegroupRemoteAccess getRemoteAccess()
NodegroupOptionsDisabled 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
getRemoteAccess in interface NodegroupOptionspublic final SubnetSelection getSubnets()
NodegroupOptions
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
getSubnets in interface NodegroupOptionspublic final Map<String,String> getTags()
NodegroupOptionsEach 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
getTags in interface NodegroupOptionspublic final List<TaintSpec> getTaints()
NodegroupOptionsDefault: - None
getTaints in interface NodegroupOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.