Update CloudOps for Kubernetes Components
A CloudOps for Kubernetes deployment runs software from several sources. Each source releases security and bug-fix updates on its own schedule. This topic describes what you must update, where the updates come from, and how to apply them.
What Needs Updating
| Component | Where updates come from | How to apply them |
|---|---|---|
| Self-Managed Commerce container images: application images, base images, ActiveMQ, and MySQL images | Self-Managed Commerce patch releases, the Elastic Path Docker project, and Amazon Linux OS package repositories | Build new images and deploy them to each Commerce environment. See Update Self-Managed Commerce Images. |
| EKS worker nodes | AWS, through new Amazon EKS optimized Amazon Machine Images (AMIs) | Rebuild the EKS node groups. See EKS Worker Nodes. |
| Bastion host | Amazon Linux 2023 package repositories | Update the operating system packages on the instance. See Manage the Bastion Host. |
| Jenkins, Jenkins plugins, Jenkins agents, Nexus, HAProxy ingress, ModSecurity Web Application Firewall (WAF), cert-manager, cluster-autoscaler, EKS add-ons, and the other services that CloudOps for Kubernetes installs | Upstream provider updates applied via CloudOps for Kubernetes releases | Upgrade CloudOps for Kubernetes. See Services Managed by CloudOps for Kubernetes. |
Elastic Path defines the versions of most of these components. You do not need to change these versions yourself. Instead, consume the Self-Managed Commerce and CloudOps for Kubernetes patch releases when they are available. Changing the versions yourself makes future upgrades harder, and the new versions are not tested by Elastic Path.
To learn about new patches, review the release notes regularly:
Commerce Stack
Elastic Path specifies the updated and recommended versions of the Java Virtual Machine (JVM), Apache Tomcat, ActiveMQ, and MySQL in the devops/ops-spec/src/main/resources/ops-spec.json file of the Self-Managed Commerce source code. Merge the latest patches for that file into your ep-commerce branch, rebuild the base and Commerce images, and then deploy the updated images to each Commerce environment.
The older build jobs, which have been included in CloudOps for Kubernetes since release 2.x, use the Elastic Path Docker project to build the images. When these jobs build the Amazon Linux base images, they always use the latest amazonlinux:2023 image and apply the latest available operating system updates. Rebuild the base images (amazonlinux-java, tomcat, activemq, and mysql) and the Commerce application images regularly, even when there are no new Self-Managed Commerce patches. This keeps the images up to date with the latest operating system updates.
The new V2 pipelines, introduced in CloudOps for Kubernetes 4.0.x, use a different approach. Self-Managed Commerce patches update the operating system version that the images are built from.
For the procedure, see Update Self-Managed Commerce Images.
EKS Worker Nodes
The EKS worker nodes are Amazon EC2 instances. AWS releases new Amazon EKS optimized AMIs with operating system updates. To apply the updates, rebuild the EKS node groups. The rebuild replaces the nodes with new instances that use the latest Amazon EKS optimized AMI for your Kubernetes version, unless you use a custom AMI.
For the procedure, see Update EKS Node Groups.
Bastion Host
The bastion host is not updated after it is created. Update its operating system packages regularly, and update its Kubernetes tools after you upgrade CloudOps for Kubernetes. For the procedure, see Manage the Bastion Host.
Services Managed by CloudOps for Kubernetes
CloudOps for Kubernetes installs and manages these services:
- The Jenkins controller, its plugins, and the Jenkins agent images
- Nexus
- HAProxy ingress controller
- ModSecurity WAF, if enabled
- The cert-manager certificate controller
- The cluster-autoscaler service, and the Amazon Elastic Block Store (EBS) Container Storage Interface (CSI) driver
- Amazon EKS add-ons. These include the Amazon VPC Container Network Interface (CNI) plugin, CoreDNS, kube-proxy, metrics-server, and the Amazon Elastic File System (EFS) CSI driver.
- Optional monitoring agents, if enabled
CloudOps for Kubernetes pins the versions of these services. Elastic Path updates the versions in new CloudOps for Kubernetes releases, including patch releases. To apply the updates, upgrade to the latest CloudOps for Kubernetes patch release. For more information, see Upgrading CloudOps for Kubernetes.
The build-jenkins-agents Jenkins job also runs every week, and when the bootstrap Jenkins job runs. It rebuilds the Jenkins agent images from the definitions in your CloudOps for Kubernetes branch.