@Stability(value=Experimental) @Internal public static final class NodegroupOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NodegroupOptions
NodegroupOptionssoftware.amazon.jsii.JsiiObject.InitializationModeNodegroupOptions.Builder, NodegroupOptions.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(NodegroupAmiType amiType,
CapacityType capacityType,
Number desiredSize,
Number diskSize,
Boolean forceUpdate,
List<? extends InstanceType> instanceTypes,
Map<String,String> labels,
LaunchTemplateSpec launchTemplateSpec,
Number maxSize,
Number minSize,
String nodegroupName,
IRole nodeRole,
String releaseVersion,
NodegroupRemoteAccess remoteAccess,
SubnetSelection subnets,
Map<String,String> tags)
Constructor that initializes the object based on literal property values passed by the
NodegroupOptions.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
NodegroupAmiType |
getAmiType()
(experimental) The AMI type for your node group.
|
CapacityType |
getCapacityType()
(experimental) The capacity type of the nodegroup.
|
Number |
getDesiredSize()
(experimental) The current number of worker nodes that the managed node group should maintain.
|
Number |
getDiskSize()
(experimental) The root device disk size (in GiB) for your node group instances.
|
Boolean |
getForceUpdate()
(experimental) Force the update if the existing node group's pods are unable to be drained due to a pod disruption budget issue.
|
List<InstanceType> |
getInstanceTypes()
(experimental) The instance types to use for your node group.
|
Map<String,String> |
getLabels()
(experimental) The Kubernetes labels to be applied to the nodes in the node group when they are created.
|
LaunchTemplateSpec |
getLaunchTemplateSpec()
(experimental) Launch template specification used for the nodegroup.
|
Number |
getMaxSize()
(experimental) The maximum number of worker nodes that the managed node group can scale out to.
|
Number |
getMinSize()
(experimental) The minimum number of worker nodes that the managed node group can scale in to.
|
String |
getNodegroupName()
(experimental) Name of the Nodegroup.
|
IRole |
getNodeRole()
(experimental) The IAM role to associate with your node group.
|
String |
getReleaseVersion()
(experimental) The AMI version of the Amazon EKS-optimized AMI to use with your node group (for example, `1.14.7-YYYYMMDD`).
|
NodegroupRemoteAccess |
getRemoteAccess()
(experimental) The remote access (SSH) configuration to use with your node group.
|
SubnetSelection |
getSubnets()
(experimental) The subnets to use for the Auto Scaling group that is created for your node group.
|
Map<String,String> |
getTags()
(experimental) The metadata to apply to the node group to assist with categorization and organization.
|
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(NodegroupAmiType amiType, CapacityType capacityType, Number desiredSize, Number diskSize, Boolean forceUpdate, List<? extends InstanceType> instanceTypes, Map<String,String> labels, LaunchTemplateSpec launchTemplateSpec, Number maxSize, Number minSize, String nodegroupName, IRole nodeRole, String releaseVersion, NodegroupRemoteAccess remoteAccess, SubnetSelection subnets, Map<String,String> tags)
NodegroupOptions.Builder.public final NodegroupAmiType getAmiType()
NodegroupOptionsDefault: - auto-determined from the instanceTypes property.
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 List<InstanceType> getInstanceTypes()
NodegroupOptionsDefault: t3.medium will be used according to the cloudformation document.
getInstanceTypes in interface NodegroupOptionshttps://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html#cfn-eks-nodegroup-instancetypespublic final Map<String,String> getLabels()
NodegroupOptionsDefault: - None
getLabels in interface NodegroupOptionspublic final LaunchTemplateSpec getLaunchTemplateSpec()
NodegroupOptionsDefault: - no launch template
getLaunchTemplateSpec in interface NodegroupOptionshttps://docs.aws.amazon.com/eks/latest/userguide/launch-templates.htmlpublic 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 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 NodegroupOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.