Class NodegroupProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.eks_v2.NodegroupProps.Jsii$Proxy
All Implemented Interfaces:
NodegroupOptions, NodegroupProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
NodegroupProps

@Stability(Stable) @Internal public static final class NodegroupProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NodegroupProps
An implementation for NodegroupProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(NodegroupProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the NodegroupProps.Builder.
  • Method Details

    • getCluster

      public final ICluster getCluster()
      Description copied from interface: NodegroupProps
      Cluster resource.
      Specified by:
      getCluster in interface NodegroupProps
    • getAmiType

      public final NodegroupAmiType getAmiType()
      Description copied from interface: NodegroupOptions
      The AMI type for your node group.

      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

      Specified by:
      getAmiType in interface NodegroupOptions
    • getCapacityType

      public final CapacityType getCapacityType()
      Description copied from interface: NodegroupOptions
      The capacity type of the nodegroup.

      Default: CapacityType.ON_DEMAND

      Specified by:
      getCapacityType in interface NodegroupOptions
    • getDesiredSize

      public final Number getDesiredSize()
      Description copied from interface: NodegroupOptions
      The current number of worker nodes that the managed node group should maintain.

      If not specified, the nodewgroup will initially create minSize instances.

      Default: 2

      Specified by:
      getDesiredSize in interface NodegroupOptions
    • getDiskSize

      public final Number getDiskSize()
      Description copied from interface: NodegroupOptions
      The root device disk size (in GiB) for your node group instances.

      Default: 20

      Specified by:
      getDiskSize in interface NodegroupOptions
    • getEnableNodeAutoRepair

      public final Boolean getEnableNodeAutoRepair()
      Description copied from interface: NodegroupOptions
      Specifies whether to enable node auto repair for the node group.

      Node auto repair is disabled by default.

      Default: false

      Specified by:
      getEnableNodeAutoRepair in interface NodegroupOptions
      See Also:
    • getForceUpdate

      public final Boolean getForceUpdate()
      Description copied from interface: NodegroupOptions
      Force the update if the existing node group's pods are unable to be drained due to a pod disruption budget issue.

      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

      Specified by:
      getForceUpdate in interface NodegroupOptions
    • getInstanceTypes

      public final List<InstanceType> getInstanceTypes()
      Description copied from interface: NodegroupOptions
      The instance types to use for your node group.

      Default: t3.medium will be used according to the cloudformation document.

      Specified by:
      getInstanceTypes in interface NodegroupOptions
      See Also:
    • getLabels

      public final Map<String,String> getLabels()
      Description copied from interface: NodegroupOptions
      The Kubernetes labels to be applied to the nodes in the node group when they are created.

      Default: - None

      Specified by:
      getLabels in interface NodegroupOptions
    • getLaunchTemplateSpec

      public final LaunchTemplateSpec getLaunchTemplateSpec()
      Description copied from interface: NodegroupOptions
      Launch template specification used for the nodegroup.

      Default: - no launch template

      Specified by:
      getLaunchTemplateSpec in interface NodegroupOptions
      See Also:
    • getMaxSize

      public final Number getMaxSize()
      Description copied from interface: NodegroupOptions
      The maximum number of worker nodes that the managed node group can scale out to.

      Managed node groups can support up to 100 nodes by default.

      Default: - same as desiredSize property

      Specified by:
      getMaxSize in interface NodegroupOptions
    • getMaxUnavailable

      public final Number getMaxUnavailable()
      Description copied from interface: NodegroupOptions
      The maximum number of nodes unavailable at once during a version update.

      Nodes will be updated in parallel. The maximum number is 100.

      This value or maxUnavailablePercentage is required to have a value for custom update configurations to be applied.

      Default: 1

      Specified by:
      getMaxUnavailable in interface NodegroupOptions
      See Also:
    • getMaxUnavailablePercentage

      public final Number getMaxUnavailablePercentage()
      Description copied from interface: NodegroupOptions
      The maximum percentage of nodes unavailable during a version update.

      This percentage of nodes will be updated in parallel, up to 100 nodes at once.

      This value or maxUnavailable is required to have a value for custom update configurations to be applied.

      Default: undefined - node groups will update instances one at a time

      Specified by:
      getMaxUnavailablePercentage in interface NodegroupOptions
      See Also:
    • getMinSize

      public final Number getMinSize()
      Description copied from interface: NodegroupOptions
      The minimum number of worker nodes that the managed node group can scale in to.

      This number must be greater than or equal to zero.

      Default: 1

      Specified by:
      getMinSize in interface NodegroupOptions
    • getNodegroupName

      public final String getNodegroupName()
      Description copied from interface: NodegroupOptions
      Name of the Nodegroup.

      Default: - resource ID

      Specified by:
      getNodegroupName in interface NodegroupOptions
    • getNodeRole

      public final IRole getNodeRole()
      Description copied from interface: NodegroupOptions
      The IAM role to associate with your node group.

      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.

      Specified by:
      getNodeRole in interface NodegroupOptions
    • getReleaseVersion

      public final String getReleaseVersion()
      Description copied from interface: NodegroupOptions
      The AMI version of the Amazon EKS-optimized AMI to use with your node group (for example, 1.14.7-YYYYMMDD).

      Default: - The latest available AMI version for the node group's current Kubernetes version is used.

      Specified by:
      getReleaseVersion in interface NodegroupOptions
    • getRemoteAccess

      public final NodegroupRemoteAccess getRemoteAccess()
      Description copied from interface: NodegroupOptions
      The remote access (SSH) configuration to use with your node group.

      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

      Specified by:
      getRemoteAccess in interface NodegroupOptions
    • getRemovalPolicy

      public final RemovalPolicy getRemovalPolicy()
      Description copied from interface: NodegroupOptions
      The removal policy applied to the managed node group resources.

      The removal policy controls what happens to the resource if it stops being managed by CloudFormation. This can happen in one of three situations:

      • The resource is removed from the template, so CloudFormation stops managing it
      • A change to the resource is made that requires it to be replaced, so CloudFormation stops managing it
      • The stack is deleted, so CloudFormation stops managing all resources in it

      Default: RemovalPolicy.DESTROY

      Specified by:
      getRemovalPolicy in interface NodegroupOptions
    • getSubnets

      public final SubnetSelection getSubnets()
      Description copied from interface: NodegroupOptions
      The subnets to use for the Auto Scaling group that is created for your node group.

      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

      Specified by:
      getSubnets in interface NodegroupOptions
    • getTags

      public final Map<String,String> getTags()
      Description copied from interface: NodegroupOptions
      The metadata to apply to the node group to assist with categorization and organization.

      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

      Specified by:
      getTags in interface NodegroupOptions
    • getTaints

      public final List<TaintSpec> getTaints()
      Description copied from interface: NodegroupOptions
      The Kubernetes taints to be applied to the nodes in the node group when they are created.

      Default: - None

      Specified by:
      getTaints in interface NodegroupOptions
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object