pub struct CreateNodegroupRequest {Show 14 fields
pub ami_type: Option<String>,
pub client_request_token: Option<String>,
pub cluster_name: String,
pub disk_size: Option<i64>,
pub instance_types: Option<Vec<String>>,
pub labels: Option<HashMap<String, String>>,
pub node_role: String,
pub nodegroup_name: String,
pub release_version: Option<String>,
pub remote_access: Option<RemoteAccessConfig>,
pub scaling_config: Option<NodegroupScalingConfig>,
pub subnets: Vec<String>,
pub tags: Option<HashMap<String, String>>,
pub version: Option<String>,
}
Fields§
§ami_type: Option<String>
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.
client_request_token: Option<String>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
cluster_name: String
The name of the cluster to create the node group in.
disk_size: Option<i64>
The root device disk size (in GiB) for your node group instances. The default disk size is 20 GiB.
instance_types: Option<Vec<String>>
The instance type to use for your node group. 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.
labels: Option<HashMap<String, String>>
The Kubernetes labels to be applied to the nodes in the node group when they are created.
node_role: 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 .
nodegroup_name: String
The unique name to give your node group.
release_version: Option<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.
remote_access: Option<RemoteAccessConfig>
The remote access (SSH) configuration to use with your node group.
scaling_config: Option<NodegroupScalingConfig>
The scaling configuration details for the Auto Scaling group that is created for your node group.
subnets: Vec<String>
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.
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.
version: Option<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.
Trait Implementations§
Source§impl Clone for CreateNodegroupRequest
impl Clone for CreateNodegroupRequest
Source§fn clone(&self) -> CreateNodegroupRequest
fn clone(&self) -> CreateNodegroupRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more