Help improve this page
Want to contribute to this user guide? Scroll to the bottom of this page and select Edit this page on GitHub. Your contributions will help make our user guide better for everyone.
Update a managed node group for your cluster
When you initiate a managed node group update, Amazon EKS automatically updates your nodes for you, completing the steps listed in Understand each phase of node updates. If you're using an Amazon EKS optimized AMI, Amazon EKS automatically applies the latest security patches and operating system updates to your nodes as part of the latest AMI release version.
There are several scenarios where it's useful to update your Amazon EKS managed node group's version or configuration:
-
You have updated the Kubernetes version for your Amazon EKS cluster and want to update your nodes to use the same Kubernetes version.
-
A new AMI release version is available for your managed node group. For more information about AMI versions, see these sections:
-
You want to adjust the minimum, maximum, or desired count of the instances in your managed node group.
-
You want to add or remove Kubernetes labels from the instances in your managed node group.
-
You want to add or remove Amazon tags from your managed node group.
-
You need to deploy a new version of a launch template with configuration changes, such as an updated custom AMI.
-
You have deployed version
1.9.0
or later of the Amazon VPC CNI add-on, enabled the add-on for prefix delegation, and want new Amazon Nitro System instances in a node group to support a significantly increased number of Pods. For more information, see Assign more IP addresses to Amazon EKS nodes with prefixes. You have enabled IP prefix delegation for Windows nodes and want new Amazon Nitro System instances in a node group to support a significantly increased number of Pods. For more information, see Assign more IP addresses to Amazon EKS nodes with prefixes.
If there's a newer AMI release version for your managed node group's Kubernetes version, you can update your node group's version to use the newer AMI version. Similarly, if your cluster is running a Kubernetes version that's newer than your node group, you can update the node group to use the latest AMI release version to match your cluster's Kubernetes version.
When a node in a managed node group is terminated due to a scaling operation or update, the Pods in that node are drained first. For more information, see Understand each phase of node updates.
Update a node group version
You can update a node group version with eksctl
or the Amazon Web Services Management Console. The version that
you update to can't be greater than the control plane's version.
Edit a node group configuration
You can modify some of the configurations of a managed node group.
To edit a node group configuration
Open the Amazon EKS console at https://console.amazonaws.cn/eks/home#/clusters
. -
Choose the cluster that contains the node group to edit.
-
Select the Compute tab.
-
Select the node group to edit, and then choose Edit.
-
(Optional) On the Edit node group page, do the following:
-
Edit the Node group scaling configuration.
-
Desired size – Specify the current number of nodes that the managed node group should maintain.
-
Minimum size – Specify the minimum number of nodes that the managed node group can scale in to.
-
Maximum size – Specify the maximum number of nodes that the managed node group can scale out to. For the maximum number of nodes supported in a node group, see View and manage Amazon EKS and Fargate service quotas.
-
-
(Optional) Add or remove Kubernetes labels to the nodes in your node group. The labels shown here are only the labels that you have applied with Amazon EKS. Other labels may exist on your nodes that aren't shown here.
-
(Optional) Add or remove Kubernetes taints to the nodes in your node group. Added taints can have the effect of either
NoSchedule
,NoExecute
, orPreferNoSchedule
. For more information, see Prevent Pods from being scheduled on specific nodes. -
(Optional) Add or remove Tags from your node group resource. These tags are only applied to the Amazon EKS node group. They don't propagate to other resources, such as subnets or Amazon EC2 instances in the node group.
-
(Optional) Edit the Node Group update configuration. Select either Number or Percentage.
-
Number – Select and specify the number of nodes in your node group that can be updated in parallel. These nodes will be unavailable during update.
-
Percentage – Select and specify the percentage of nodes in your node group that can be updated in parallel. These nodes will be unavailable during update. This is useful if you have many nodes in your node group.
-
-
When you're finished editing, choose Save changes.
-