|
| 1 | +// |
| 2 | +// * migration/migrating_3_4/migrating-application-workloads-3-4.adoc |
| 3 | +// * migration/migrating_4_1_4/migrating-application-workloads-4-1-4.adoc |
| 4 | +// * migration/migrating_4_2_4/migrating-application-workloads-4-2-4.adoc |
| 5 | + |
| 6 | +[id='migration-mtc-custom-resources_{context}'] |
| 7 | += {mtc-full} custom resources |
| 8 | + |
| 9 | +The {mtc-full} ({mtc-short}) creates the following custom resources (CRs): |
| 10 | + |
| 11 | +image::migration-architecture.png[migration architecture diagram] |
| 12 | + |
| 13 | +image:darkcircle-1.png[20,20] link:https://github.com/konveyor/mig-controller/blob/master/pkg/apis/migration/v1alpha1/migcluster_types.go[MigCluster] (configuration, {mtc-short} cluster): Cluster definition |
| 14 | + |
| 15 | +image:darkcircle-2.png[20,20] link:https://github.com/konveyor/mig-controller/blob/master/pkg/apis/migration/v1alpha1/migstorage_types.go[MigStorage] (configuration, {mtc-short} cluster): Storage definition |
| 16 | + |
| 17 | +image:darkcircle-3.png[20,20] link:https://github.com/konveyor/mig-controller/blob/master/pkg/apis/migration/v1alpha1/migplan_types.go[MigPlan] (configuration, {mtc-short} cluster): Migration plan |
| 18 | + |
| 19 | +The `MigPlan` CR describes the source and target clusters, replication repository, and namespaces being migrated. It is associated with 0, 1, or many `MigMigration` CRs. |
| 20 | + |
| 21 | +[NOTE] |
| 22 | +==== |
| 23 | +Deleting a `MigPlan` CR deletes the associated `MigMigration` CRs. |
| 24 | +==== |
| 25 | + |
| 26 | +image:darkcircle-4.png[20,20] link:https://github.com/vmware-tanzu/velero/blob/main/pkg/apis/velero/v1/backupstoragelocation_types.go[BackupStorageLocation] (configuration, {mtc-short} cluster): Location of `Velero` backup objects |
| 27 | + |
| 28 | +image:darkcircle-5.png[20,20] link:https://github.com/vmware-tanzu/velero/blob/main/pkg/apis/velero/v1/volume_snapshot_location.go[VolumeSnapshotLocation] (configuration, {mtc-short} cluster): Location of `Velero` volume snapshots |
| 29 | + |
| 30 | +image:darkcircle-6.png[20,20] link:https://github.com/konveyor/mig-controller/blob/master/pkg/apis/migration/v1alpha1/migmigration_types.go[MigMigration] (action, {mtc-short} cluster): Migration, created every time you stage or migrate data. Each `MigMigration` CR is associated with a `MigPlan` CR. |
| 31 | + |
| 32 | +image:darkcircle-7.png[20,20] link:https://github.com/vmware-tanzu/velero/blob/main/pkg/apis/velero/v1/backup.go[Backup] (action, source cluster): When you run a migration plan, the `MigMigration` CR creates two `Velero` backup CRs on each source cluster: |
| 33 | + |
| 34 | +* Backup CR #1 for Kubernetes objects |
| 35 | +* Backup CR #2 for PV data |
| 36 | + |
| 37 | +image:darkcircle-8.png[20,20] link:https://github.com/vmware-tanzu/velero/blob/main/pkg/apis/velero/v1/restore.go[Restore] (action, target cluster): When you run a migration plan, the `MigMigration` CR creates two `Velero` restore CRs on the target cluster: |
| 38 | + |
| 39 | +* Restore CR #1 (using Backup CR #2) for PV data |
| 40 | +* Restore CR #2 (using Backup CR #1) for Kubernetes objects |
0 commit comments