-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5500 from ministryofjustice/add-ami-launch-templa…
…te-info Add runbook on upgrading AMI versions
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
title: Upgrade AMI Version | ||
weight: 53 | ||
last_reviewed_on: 2024-04-22 | ||
review_in: 6 months | ||
--- | ||
|
||
# Upgrade AMI Version | ||
|
||
AWS releases new AMI versions for EKS node groups that include Kubernetes patches and security updates. To upgrade the node groups to use the new AMI version: | ||
|
||
- login to the AWS console | ||
- Select EKS and select the cluster | ||
- Select the node group and click on `Update AMI version` | ||
- Select the Update Strategy to "Force update" and click on "Update" | ||
|
||
This will perform a rolling update of all the nodes in the node group. Follow the steps in [Recycle all nodes](#recycle-all-nodes) section to recycle all the nodes. | ||
|
||
# Recycle all nodes | ||
|
||
When a node group version changes, this will cause all of the nodes to recycle. When AWS recycles the nodes, it will not evict pods if it will break the PDB. | ||
This will cause the node to stall the update and the nodes will **not** continue to recycle. | ||
|
||
To rectify this, run the script mentioned in [Recycle-all-nodes- Gotchas](/recycle-all-nodes.html#gotchas) section. |