EKS supports configuring the same launch template. The nodes in the node-group will be recycled by new nodes with new configurations when updating the launch template version.
See for more information.
The following is an example to replace cluster nodes with new storage size.
In Longhorn, set to
0
.Go to the launch template of the EKS cluster node-group. You can find in the EKS cluster tab
Configuration/Compute/<node-group-name>
and click the launch template.Choose the
Source template version
in theLaunch template name and version description
.Follow steps to Expand volume, or .
Update the volume size in .
Click
Create template version
to save changes.
Create additional volume
Click
Advanced
thenAdd new volume
in and fill in the fields.Adjust the auto-mount script and add to
User data
inAdvanced details
. Make sure theDEV_PATH
matches theDevice name
of the additional volume.Click
Create template version
to save changes.Go to the EKS cluster node-group and change
Launch template version
in . Track the status in theUpdate history
tab.