eks upgrade: 1.24 to 1.25

John Zen
2 min readFeb 7, 2024

--

My EKS is

What need to be changed

I use both AWS eks insights and kubent to detect what need to be addressed. Use this command to see apiVersion used in different resources.

AWS EKS Insights

AWS EKS Insights is available from aws console in eks; look for tab — Insights.

Using command line

aws eks list-insights --region ap-southeast-2 --cluster-name my-cluster

aws eks describe-insight --region ap-southeast-2 --id ${insights-entry-id} --cluster-name my-cluster

The command lists api changes that need attention, and resources affected.

kubent

Run

kubent

Steps

I make the following changes and do terraform plan and terraform apply at each step.

Update terraform and providers version

I run terraform plan without any change to check if the code and resources are in sync.

Then I update terraform and providers version.

terraform {
required_version = ">= 1.6.6"

required_providers {
aws = {
version = "~> 5.35.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "2.25.2"
}
helm = {
source = "hashicorp/helm"
version = "2.12.1"
}
}
}

Update terraform module version

module "eks" {
source = "terraform-aws-modules/eks/aws"
version = "~> 20.2.0"
...
}
module "eks_blueprints_addons" {
source = "aws-ia/eks-blueprints-addons/aws"
version = "~> 1.14.0"
...
}

Update eks addons version

Update eks addons version to pass to eks_blueprints_addons module.

Update external addons version

Update eks cluster version

Update eks addons version

Check if there are new version update as cluster version change

Reference

--

--