Terraform
If you deployed your infrastructure using the terraform-aws-eks module version v3.0.1 or above, follow Upgrading K8s. Otherwise, there are 2 options:- Upgrade the module to version v3 using State Migration, then follow Upgrading K8s.
- Follow the instructions below to perform the update with prior versions.
-
Terraform state file:
terraform.tfstate -
Variables file:
domino-terraform.auto.tfvars -
Terraform configuration file:
main.tf
- Terraform installed with an active session (see the Terraform module requirements for compatible versions).
- Amazon Web Services Command Line Interface (AWS CLI) installed.
-
Set AWS credentials in the environment:
-
Validate that there are no pending changes:
The following message indicates no pending changes:
-
Open the
domino-terraform.auto.tfvarsfile and add/edit thek8s_versionattribute with the desired Kubernetes version:If you are using custom images for the node groups you will need to provide the appropriate Amazon Machine Image (AMI). -
Validate the desired changes:
-
Update the cluster and
node_groups:
terraform apply performs these actions:
- The control plane is upgraded to the desired version.
-
The latest
amazon-eks-nodeversion is retrieved and applied to themanaged-node-groups. The update is detailed in Managed nodes update behavior.