Skip to main content
Version: 4.0.x

Update to Version 4.0

Prerequisites​

CloudOps for Kubernetes 4.0.x has the following pre-requisites.

CloudOps for Kubernetes 3.6.x​

important

You can skip up to one CloudOps for Kubernetes release when upgrading.

Supported upgrade paths:

  • Upgrade from your current 3.6.x patch level to 4.0.x
  • Upgrade from your current 3.7.x patch level to 4.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.

important

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.

  1. The Kubernetes version is updated to 1.36. Additional upgrade steps due to this change are noted in the section Additional Upgrade Steps below.

  2. The Cilium Kubernetes Container Network Interface (CNI) has been removed in CloudOps for Kubernetes release 4.0 and 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.

    warning

    There will be two brief outages during the docker-compose up step 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 Kubernetes 1.36 Amazon Machine Image (AMI).

  3. 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 ClusterRoleBinding and 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​

  1. 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.

  2. Rebuild the Kubernetes nodegroups, as documented in Upgrading CloudOps for Kubernetes, as part of the upgrade process. This is required for the Kubernetes 1.36 upgrade.

    In docker-compose.override.yml, set TF_VAR_rebuild_nodegroups to "true" for this upgrade.

    TF_VAR_rebuild_nodegroups: "true"

    This replaces the existing EKS node groups with node groups that use the Kubernetes 1.36 compatible Amazon Machine Image (AMI). If you are upgrading from 3.6.x directly to 4.0.x (skipping 3.7.x), do not rebuild once for 1.35 and again for 1.36. The 3.7 "rebuild for 1.35" step is superseded; rebuild once to 1.36.

  3. If you are upgrading from release 3.6.x directly to release 4.0.x (skipping 3.7.x), complete the remaining steps in the Additional Upgrade Steps section in Update to Version 3.7.

  4. 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 your docker-compose.override.yml file and see if a value was specified for parameter aws_eks_ami.

  5. For each of your Commerce environments, run the following Jenkins jobs to apply changes to the deployments.

    • Run deploy-or-delete-commerce-stack to apply the changes for tickets CLOUD-3709, CLOUD-3833, CLOUD-3904, and CLOUD-3905.
    • Run create-or-delete-activemq-container to apply the changes for tickets CLOUD-3843, CLOUD-3861, CLOUD-3753, CLOUD-3821, and CLOUD-3841.
  6. For each of your MySQL Aurora or PostgreSQL RDS instances that you manage via Jenkins, run create-and-manage-database-server to apply the changes for ticket CLOUD-3692.

  7. For each of your MySQL containerized database servers that you manage via Jenkins, run create-or-delete-mysql-container to apply the changes for ticket CLOUD-3833.

  8. For each of your bastion instances that you manage via Jenkins, run create-and-manage-bastion-instance to apply the changes for ticket CLOUD-3970.

  9. Optional: if your team clones the ep-commerce project with a Git SSH key that is different from the gitCredentialId key, you can use new fields in docker-compose.override.yml to specify a default ep-commerce credential. 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 gitCredentialId when cloning ep-commerce.

    For details, see Set the Default ep-commerce Git Credential.

  10. Optional: Set TF_VAR_eks_iam_access_entries in docker-compose.override.yml to grant additional IAM users or IAM roles access to view or interact with the EKS cluster using kubectl or 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​

  1. Review all upgrade steps and requirements described in Upgrading CloudOps for Kubernetes.

  2. If you are upgrading from release 3.6.x directly to release 4.0.x (skipping 3.7.x), review the Preparation section in Update to Version 3.7.

  3. 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, and secretsmanager:TagResource to 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_id access key in docker-compose.override.yml.

  4. 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.

  5. 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.x or 3.7.x, deploy Commerce services, and then follow your upgrade plan.

  6. 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 up step 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 kubectl using 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 epCommerceCredentialId that is used across all Jenkins jobs, see Set the Default ep-commerce Git Credential.