Update AWS EKS cluster
Revision | Date | Description |
|---|---|---|
| 24.07.2024 | Init Changelog |
This article explains how to update AWS EKS cluster with its components.
Requirements
Access to AWS EKS management console (
editpermissions).(optional) Terraform installed and access to IaC code.
Instructions
To perform AWS EKS cluster upgrade you need to:
Login to AWS Console.
Search for AWS EKS Console and open it.
Go to Clusters view and find your cluster to update.
Click
Update nownext to current cluster version underKubernetes versiontab.From dropbox select next Kubernetes version (you can only run update for one version at time).
Click Update and wait till cluster’s status change Updating → Active (you can refresh page or console to check current status).
Go into cluster details (click on it’s name on list).
Go into Compute tab.
Perform Node Rolling Update by selecting Update now next to AMI release version for all Node groups with settings (you can run Update for all Node Groups at once - AWS will create new Nodes and after that will perform termination of old Nodes):

Wait till Node Groups update ends (each Node Group Status will be Active) - if it takes too long (more than 30min), take a look on old nodes workload. It may be stuck. Check status or logs and decide you will wait or kill stuck pods.
Go to Add-ons tab.
Choose Update version (do it for every add-on!) and set it up:
Version: Latest
Select IAM role: Inherit from node
Optional configuration settings → Conflict resolution method: Preserve
Wait till every add-on will be in Status Active.
(optional) Clone Terraform code repository with cluster definition on your workstation and checkout on pro
(optional) Edit eks module:
set new Kubernetes version in cluster_version.
for every aws_eks_addon update addon_version (check add-on names!).
(optional) Run
terraform planon project and check if there are no version changes.Commit and push changes to remote repository.