CRD overview

Migrate for Anthos includes Custom Resource Definitions (CRDs) that enable you to easily create and manage migrations using an API automation solution or code. For example, you can use these CRDs to build your own automated tools.

Steps to using the CRDs

The sequence of steps that you use to perform a migration by using the CRDs is similar to the process you use with migctl and the Google Cloud Console. The steps in this process are:

  1. Apply a SourceProvider CRD that represents the source platform from which you are migrating.

    Apply the SourceProvider CRD for either:

  2. Apply a Migration CRD to create a migration resource. In the Migration CRD, you specify the name of a previously created SourceProvider CRD.

    Apply the Migration CRD for either:

  3. Applying a Migration CRD creates a GenerateArtifactsFlow CRD (Linux) or a WindowsGenerateArtifacts CRD (Windows).

    These CRDs contain the details of the migration plan. You should review and update these generated CRDs as necessary before executing the migration:

  4. Apply a GenerateArtifactsTask CRD (Linux) or a WindowsGenerateArtifactsTask CRD (Windows) to execute the migration and generate the migration artifacts.

    The GenerateArtifactsTask CRD or the WindowsGenerateArtifactsTask CRD reference the Migration CRD used to generatecreate the migration resources.

    Apply the CRD for either:

  5. Deploy the migrated workload for either: