Skip to content

Commit

Permalink
Merge pull request #5500 from ministryofjustice/add-ami-launch-templa…
Browse files Browse the repository at this point in the history
…te-info

Add runbook on upgrading AMI versions
  • Loading branch information
mikebell authored Apr 23, 2024
2 parents 037e2b4 + 6b79cd4 commit 7480a3d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions runbooks/source/upgrade-AMI-version.html.md.erb
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.

0 comments on commit 7480a3d

Please sign in to comment.