Update to Version 4.0
Prerequisites
CloudOps for Kubernetes 4.0.x has the following pre-requisites.
CloudOps for Kubernetes 3.6.x
You can skip up to one CloudOps for Kubernetes release when upgrading.
Supported upgrade paths:
- Upgrade from your current
3.6.xpatch level to4.0.x - Upgrade from your current
3.7.xpatch level to4.0.x
Upgrading directly from 3.5.x to 4.0.x is not supported. Complete an upgrade to 3.6.x or 3.7.x first.
Complete the upgrade to CloudOps for Kubernetes release 3.6.x or higher before upgrading to release 4.0.x.
- For instructions on upgrading to release
3.7.x, see Update to Version 3.7. - For instructions on upgrading to release
3.6.x, see Update to Version 3.6.
If you are upgrading from release 3.6.x directly to release 4.0.x (skipping 3.7.x), you must also review and complete upgrade steps in the Update to Version 3.7 guide as part of your upgrade process.
What Has Changed
For a list of the changes in the release, see Release Notes.
CloudOps for Kubernetes 4.0 introduces the V2 Pipelines for building, testing, and configuring Self-Managed Commerce environments. These jobs use reusable build artifacts and YAML environment configuration files. Legacy jobs remain available, but teams with custom Jenkins automation should review the V2 jobs and plan how they want to adopt them. For more information, see V2 Pipelines Overview.
Changes that impact the upgrade process
CloudOps for Kubernetes release 4.0.x contains the following changes that impact the upgrade process.
-
The Kubernetes version is updated to
1.36. Additional upgrade steps due to this change are noted in the sectionAdditional Upgrade Stepsbelow. -
The Cilium Kubernetes Container Network Interface (CNI) has been removed in CloudOps for Kubernetes release
4.0and replaced with the default Amazon VPC CNI. The upgrade process will automatically remove Cilium and deploy new EKS nodes configured with the Amazon VPC CNI.warningThere will be two brief outages during the
docker-compose upstep of the upgrade process; once while the CNI is changed and again when the nodes are rebuilt. In internal testing each outage lasted less than 15 minutes, and the entire process completed in approximately one hour. Schedule the upgrade accordingly.The Cilium migration replaces nodes, but you must still set
TF_VAR_rebuild_nodegroups: "true"so replacement nodes use the Kubernetes1.36Amazon Machine Image (AMI). -
The upgrade process now automatically detects and heals an issue on EKS clusters missing an access control binding (
eks:addon-cluster-admin) that Amazon EKS now provisions automatically on newer clusters. If the binding is missing, then EKS-managed addons (coredns,kube-proxy,metrics-server,aws-efs-csi-driver) can become stuck and unmanageable.If the upgrade process detects this condition on your cluster, it applies the missing
ClusterRoleBindingand deletes and recreates the affected addons to clear them out of the stuck state. Pod Autoscaling and Elastic File System (EFS) provisioning may be very briefly impacted during the reconciliation.
Additional Upgrade Steps
-
Review any additional tools that you may have installed in the Kubernetes cluster, such as monitoring or security tools, and ensure that they are compatible with Kubernetes
1.36. If they are not compatible then plan to update them as part of the upgrade process. -
Rebuild the Kubernetes nodegroups, as documented in Upgrading CloudOps for Kubernetes, as part of the upgrade process. This is required for the Kubernetes
1.36upgrade.In
docker-compose.override.yml, setTF_VAR_rebuild_nodegroupsto"true"for this upgrade.TF_VAR_rebuild_nodegroups: "true"This replaces the existing EKS node groups with node groups that use the Kubernetes
1.36compatible Amazon Machine Image (AMI). If you are upgrading from3.6.xdirectly to4.0.x(skipping3.7.x), do not rebuild once for1.35and again for1.36. The 3.7 "rebuild for 1.35" step is superseded; rebuild once to1.36. -
If you are upgrading from release
3.6.xdirectly to release4.0.x(skipping3.7.x), complete the remaining steps in the Additional Upgrade Steps section in Update to Version 3.7. -
If you have been using a custom Amazon Machine Image (AMI) for your Kubernetes nodes, ensure it is compatible with Kubernetes
1.36. One way to determine if you have been using a custom AMI is to view yourdocker-compose.override.ymlfile and see if a value was specified for parameteraws_eks_ami. -
For each of your Commerce environments, run the following Jenkins jobs to apply changes to the deployments.
- Run
deploy-or-delete-commerce-stackto apply the changes for ticketsCLOUD-3709,CLOUD-3833,CLOUD-3904, andCLOUD-3905. - Run
create-or-delete-activemq-containerto apply the changes for ticketsCLOUD-3843,CLOUD-3861,CLOUD-3753,CLOUD-3821, andCLOUD-3841.
- Run
-
For each of your MySQL Aurora or PostgreSQL RDS instances that you manage via Jenkins, run
create-and-manage-database-serverto apply the changes for ticketCLOUD-3692. -
For each of your MySQL containerized database servers that you manage via Jenkins, run
create-or-delete-mysql-containerto apply the changes for ticketCLOUD-3833. -
For each of your bastion instances that you manage via Jenkins, run
create-and-manage-bastion-instanceto apply the changes for ticketCLOUD-3970. -
Optional: if your team clones the
ep-commerceproject with a Git SSH key that is different from thegitCredentialIdkey, you can use new fields indocker-compose.override.ymlto specify a defaultep-commercecredential. Choose one of the below approaches:- Create an AWS Secrets Manager secret storing the Git SSH private key, then specify the Amazon Resource Name (ARN) in field
TF_VAR_ep_commerce_credential_secret_arn, or - Create or identify a Jenkins credential in the Jenkins admin console, then specify that credential's name in field
TF_VAR_ep_commerce_credential_id.
Do not set both fields. If neither is set, then the current behaviour continues and jobs use
gitCredentialIdwhen cloningep-commerce.For details, see Set the Default ep-commerce Git Credential.
- Create an AWS Secrets Manager secret storing the Git SSH private key, then specify the Amazon Resource Name (ARN) in field
-
Optional: Set
TF_VAR_eks_iam_access_entriesindocker-compose.override.ymlto grant additional IAM users or IAM roles access to view or interact with the EKS cluster usingkubectlor the AWS EKS web console. Different IAM principals can be given different levels of access. For details and examples, see Grant IAM Users and Roles Access to EKS.
Preparation
-
Review all upgrade steps and requirements described in Upgrading CloudOps for Kubernetes.
-
If you are upgrading from release
3.6.xdirectly to release4.0.x(skipping3.7.x), review the Preparation section in Update to Version 3.7. -
Verify that your bootstrap Identity and Access Management (IAM) user has the permissions in the example policy in IAM Permissions. This release adds
kms:Decrypt,secretsmanager:DescribeSecret, andsecretsmanager:TagResourceto the example policy. If your bootstrap IAM user has the Administrator permission, no change is needed.The bootstrap IAM user is the owner of the
TF_VAR_aws_access_key_idaccess key indocker-compose.override.yml. -
Document an upgrade plan with all steps that you will need to perform to complete the upgrade. Include validation steps in the upgrade plan. Validation should include the functionality of Jenkins jobs, Commerce services, and any custom tools.
-
Suggested: practice and refine the upgrade plan in an AWS account not used by your team or by the business. For example, obtain an empty AWS account, set up CloudOps for Kubernetes release
3.6.xor3.7.x, deploy Commerce services, and then follow your upgrade plan. -
Identify a time to apply the CloudOps for Kubernetes update to your production cluster. As described above, there will be two brief outages during the
docker-compose upstep of the upgrade process.
Perform the Update
Follow the general instructions on updating the cluster in the Upgrading CloudOps for Kubernetes documentation.
After the Update
After the update is complete, consider taking advantage of the newer capabilities included in this and recent releases.
- If your team would like to integrate Jenkins user authentication with your corporate SAML 2.0 Single Sign-On (SSO) system, see Jenkins SAML SSO.
- If various members of your team would like to be able to view EKS details in the AWS EKS console, or run
kubectlusing their own AWS credentials, see Grant IAM Users and Roles Access to EKS. - If your team uses AI agents and would like those agents to be able to interact with Jenkins, read about the Jenkins MCP Server.
- If your team would like to configure Jenkins keys and other credentials in a more resilient manner via AWS Secrets Manager secrets, see Manage Jenkins Credentials.
- If your team would like to configure the Commerce stacks using versioned files rather than Jenkins parameters, see Migrate from Legacy Jobs.
- If your team would like to no longer require and use the Elastic Path Docker containerization project, see V2 Pipelines Overview.
- If your team would like to use Amazon CloudWatch for container metrics or Application Performance Monitoring (APM), see CloudWatch Observability.
- If your team would like to set a default
epCommerceCredentialIdthat is used across all Jenkins jobs, see Set the Default ep-commerce Git Credential.