You can migrate application workloads from OKD 3.7 (and later) to OKD Latest with the Cluster Application Migration (CAM) tool. The CAM tool enables you to control the migration and to minimize application downtime.
The CAM tool’s web console and API, based on Kubernetes Custom Resources, enable you to migrate stateful application workloads at the granularity of a namespace.
Optionally, you can use the Control Plane Migration Assistant (CPMA) to assist you in migrating control plane settings.
Before you begin your migration, be sure to review the information on planning your migration.
The source cluster must be OKD 3.7, 3.9, 3.10, or 3.11.
You must have
You must have
cluster-admin privileges on all clusters.
You must configure a replication repository that is accessible to the source and target clusters.
If your application uses images from the
openshift namespace, the required versions of the images must be present on the target cluster.
If the required images are not present, you must update the
imagestreamtags references to use an available version that is compatible with your application. If the
imagestreamtags cannot be updated, you can manually upload equivalent images to the application namespaces and update the applications to reference them.
imagestreamtags have been removed from OKD Latest:
The Cluster Application Migration (CAM) tool enables you to migrate Kubernetes resources, persistent volume data, and internal container images from an OKD source cluster to an OKD Latest target cluster, using the CAM web console or the Kubernetes API.
Migrating an application with the CAM web console involves the following steps:
Install the Cluster Application Migration Operator on all clusters.
The Cluster Application Migration Operator installs the CAM tool (CAM web console and Migration controller) on the target cluster by default. You can configure the Migration controller to install the CAM tool on another cluster. The cluster on which the CAM tool is installed is referred to as the CAM tool cluster.
Configure the replication repository, an intermediate object storage that the CAM tool uses to migrate data.
Add the source cluster to the CAM web console.
Add the replication repository to the CAM web console.
Create a migration plan, with one of the following data migration options:
Copy: The CAM tool copies the data from the source cluster to the replication repository, and from the replication repository to the target cluster.
Move: The CAM tool unmounts a remote volume (for example, NFS) from the source cluster, creates a PV resource on the target cluster pointing to the remote volume, and then mounts the remote volume on the target cluster. Applications running on the target cluster use the same remote volume that the source cluster was using. The remote volume must be accessible to the source and target clusters.
Although the replication repository does not appear in this diagram, it is required for the actual migration.
Run the migration plan, with one of the following options:
Stage (optional) copies data to the target cluster without stopping the application.
Staging can be run multiple times so that most of the data is copied to the target before migration. This minimizes the actual migration time and application downtime.
Migrate stops the application on the source cluster and recreates its resources on the target cluster. Optionally, you can migrate the workload without stopping the application.