> For the complete documentation index, see [llms.txt](https://docs.cennso.com/cennso/cdm/1.3/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/cennso/cdm/1.3/releases/migration_to_1.0.md).

# Migration guide from Cennso Agent based CDM installation to CDM Extension 1.0

## Adoption of the CDM resources to the CDM Extension 1.0

After the migration of the Cennso 2.9 to the Cennso 2.10, the CDM resources are running in the Management Cluster. They are orphaned and they are not managed by and Installation or ClusterInstallation. To adopt them and upgrade to the CDM Extension 1.0, please follow the steps below:

1. Ensure the Cennso 2.10 is installed and running.
2. Ensure the CDM pods are running in the Management Cluster: `kubectl -n cennso-system get pods -l app.kubernetes.io/name=cdm-node`.
3. Ensure the CDM Extension Package is present in the Management Cluster: `kubectl get packages.extension.cennso.com`.
4. Download the [clusterinstallation-1.0.yaml](https://docs.cennso.com/api/assets/cennso/cdm/1.3/assets/upgrade-1.0/clusterinstallation-1.0.yaml) file.
5. Replace the `{MANAGEMENT_CLUSTER_NAME}` placeholder in the `clusterinstallation-1.0.yaml` file with the name of your Management Cluster.
6. Replace the `{MANAGEMENT_CLUSTER_SOLUTION}` placeholder in the `cdm-clusterinstallation-1.0.yaml` file with the solution of your Management Cluster.
7. Apply the `clusterinstallation-1.0.yaml` file: `kubectl apply -f clusterinstallation-1.0.yaml`.
8. If some CDM Node pods cannot run properly, remove the old Persistent Volume Claims of the CDM Node and restart the pods:

   ```sh
   kubectl -n cennso-system delete pvc -l app.kubernetes.io/name=cdm-node --force
   kubectl -n cennso-system delete pods -l app.kubernetes.io/name=cdm-node --force
   ```

   > **NOTE**: You may need to detach from the first command with CTRL+C, as it may wait for the PVCs to be detached from the pods you are deleting.

9. Wait until the ClusterInstallation is ready: `kubectl get clusterinstallations.extension.cennso.com cdm`.
