Struct rusoto_eks::CreateNodegroupRequest
source · [−]pub struct CreateNodegroupRequest {Show 18 fields
pub ami_type: Option<String>,
pub capacity_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 launch_template: Option<LaunchTemplateSpecification>,
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 taints: Option<Vec<Taint>>,
pub update_config: Option<NodegroupUpdateConfig>,
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. Non-GPU instances should use the AL2_x86_64
AMI type. Arm instances should use the AL2_ARM_64
AMI type. All types use the Amazon EKS optimized Amazon Linux 2 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.
capacity_type: Option<String>
The capacity type for your node group.
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. 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.
instance_types: Option<Vec<String>>
Specify the instance types for a node group. If you specify a GPU instance type, be sure to specify AL2_x86_64_GPU
with the amiType
parameter. If you specify launchTemplate
, then you can specify zero or one instance type in your launch template or you can specify 0-20 instance types for instanceTypes
. If however, you specify an instance type in your launch template and specify any instanceTypes
, the node group deployment will fail. If you don't specify an instance type in a launch template or for instanceTypes
, then t3.medium
is used, by default. If you specify Spot
for capacityType
, then we recommend specifying multiple values for instanceTypes
. For more information, see Managed node group capacity types and Launch template support in the Amazon EKS User Guide.
labels: Option<HashMap<String, String>>
The Kubernetes labels to be applied to the nodes in the node group when they are created.
launch_template: Option<LaunchTemplateSpecification>
An object representing a node group's launch template specification. If specified, then do not specify instanceTypes
, diskSize
, or remoteAccess
and make sure that the launch template meets the requirements in launchTemplateSpecification
.
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. Nodes receive permissions for these API calls through an IAM instance profile and associated policies. Before you can launch nodes and register them into a cluster, you must create an IAM role for those nodes to use when they are launched. For more information, see Amazon EKS 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.
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 Amazon Linux 2 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.
remote_access: Option<RemoteAccessConfig>
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.
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. 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.
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.
taints: Option<Vec<Taint>>
The Kubernetes taints to be applied to the nodes in the node group.
update_config: Option<NodegroupUpdateConfig>
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. 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.
Trait Implementations
sourceimpl Clone for CreateNodegroupRequest
impl Clone for CreateNodegroupRequest
sourcefn clone(&self) -> CreateNodegroupRequest
fn clone(&self) -> CreateNodegroupRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CreateNodegroupRequest
impl Debug for CreateNodegroupRequest
sourceimpl Default for CreateNodegroupRequest
impl Default for CreateNodegroupRequest
sourcefn default() -> CreateNodegroupRequest
fn default() -> CreateNodegroupRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<CreateNodegroupRequest> for CreateNodegroupRequest
impl PartialEq<CreateNodegroupRequest> for CreateNodegroupRequest
sourcefn eq(&self, other: &CreateNodegroupRequest) -> bool
fn eq(&self, other: &CreateNodegroupRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateNodegroupRequest) -> bool
fn ne(&self, other: &CreateNodegroupRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for CreateNodegroupRequest
impl Serialize for CreateNodegroupRequest
impl StructuralPartialEq for CreateNodegroupRequest
Auto Trait Implementations
impl RefUnwindSafe for CreateNodegroupRequest
impl Send for CreateNodegroupRequest
impl Sync for CreateNodegroupRequest
impl Unpin for CreateNodegroupRequest
impl UnwindSafe for CreateNodegroupRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more