CreateNodegroupRequest
public struct CreateNodegroupRequest : AWSShape
Undocumented
-
Declaration
Swift
public static var _members: [AWSShapeMember]
-
The AMI type for your node group. 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. If you specify launchTemplate, and your launch template uses a custom AMI, then don’t specify amiType, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
Declaration
Swift
public let amiType: AMITypes?
-
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Declaration
Swift
public let clientRequestToken: String?
-
The name of the cluster to create the node group in.
Declaration
Swift
public let clusterName: String
-
The root device disk size (in GiB) for your node group instances. The default disk size is 20 GiB. If you specify launchTemplate, then don’t specify diskSize, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
Declaration
Swift
public let diskSize: Int?
-
The instance type to use for your node group. You can specify a single instance type for a node group. The default value for instanceTypes is t3.medium. If you choose a GPU instance type, be sure to specify AL2_x86_64_GPU with the amiType parameter. If you specify launchTemplate, then don’t specify instanceTypes, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
Declaration
Swift
public let instanceTypes: [String]?
-
The Kubernetes labels to be applied to the nodes in the node group when they are created.
Declaration
Swift
public let labels: [String : String]?
-
An object representing a node group’s launch template specification. If specified, then do not specify instanceTypes, diskSize, or remoteAccess. If specified, make sure that the launch template meets the requirements in launchTemplateSpecification.
Declaration
Swift
public let launchTemplate: LaunchTemplateSpecification?
-
The unique name to give your node group.
Declaration
Swift
public let nodegroupName: String
-
The Amazon Resource Name (ARN) of 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. For more information, see Amazon EKS Worker Node IAM Role in the Amazon EKS User Guide . If you specify launchTemplate, then don’t specify IamInstanceProfile in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
Declaration
Swift
public let nodeRole: String
-
The AMI version of the Amazon EKS-optimized AMI to use with your node group. By default, the latest available AMI version for the node group’s current Kubernetes version is used. For more information, see Amazon EKS-Optimized Linux AMI Versions in the Amazon EKS User Guide. If you specify launchTemplate, and your launch template uses a custom AMI, then don’t specify releaseVersion, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
Declaration
Swift
public let releaseVersion: String?
-
The remote access (SSH) configuration to use with your node group. If you specify launchTemplate, then don’t specify remoteAccess, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
Declaration
Swift
public let remoteAccess: RemoteAccessConfig?
-
The scaling configuration details for the Auto Scaling group that is created for your node group.
Declaration
Swift
public let scalingConfig: NodegroupScalingConfig?
-
The subnets to use for the Auto Scaling group that is created for your node group. These subnets must have the tag key kubernetes.io/cluster/CLUSTER_NAME with a value of shared, where CLUSTER_NAME is replaced with the name of your cluster. If you specify launchTemplate, then don’t specify SubnetId in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
Declaration
Swift
public let subnets: [String]
-
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.
Declaration
Swift
public let tags: [String : String]?
-
The Kubernetes version to use for your managed nodes. By default, the Kubernetes version of the cluster is used, and this is the only accepted specified value. If you specify launchTemplate, and your launch template uses a custom AMI, then don’t specify version, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
Declaration
Swift
public let version: String?
-
init(amiType:clientRequestToken:clusterName:diskSize:instanceTypes:labels:launchTemplate:nodegroupName:nodeRole:releaseVersion:remoteAccess:scalingConfig:subnets:tags:version:)
Undocumented
Declaration
Swift
public init(amiType: AMITypes? = nil, clientRequestToken: String? = CreateNodegroupRequest.idempotencyToken(), clusterName: String, diskSize: Int? = nil, instanceTypes: [String]? = nil, labels: [String : String]? = nil, launchTemplate: LaunchTemplateSpecification? = nil, nodegroupName: String, nodeRole: String, releaseVersion: String? = nil, remoteAccess: RemoteAccessConfig? = nil, scalingConfig: NodegroupScalingConfig? = nil, subnets: [String], tags: [String : String]? = nil, version: String? = nil)
-
Declaration
Swift
public func validate(name: String) throws