This topic describes the steps for migrating Virtual Machines (VMs) to Google Kubernetes Engine (GKE) using Migrate for Anthos.
Benefits of Migrate for Anthos
For more information about the benefits of migrating to GKE with Migrate for Anthos, see Benefits of Migrate for Anthos.
For more information on how Migrate for Anthos performs migrations, see Architecture.
First, check that your workloads run an operating system supported by Migrate for Anthos.
Also, read over the list of Best practices for planning a migration.
Set up an installation of Migrate for Compute Engine.
Before starting a migration, create or select a GKE cluster and install the Migrate for Anthos components.
Migrating from VMware
To migrate VMs from VMware to GKE:
- Select a VM in a vSphere cluster that has Migrate for Compute Engine 4.2 (or later) installed and retrieve its configuration.
- Configure a YAML file with your application's information. Next, apply that YAML to your GKE cluster.
- Your on-premises VM is gracefully stopped, and Migrate for Anthos starts migrating data. If configured, Migrate for Anthos streams data from VMware in the background. Your container starts within minutes.
- If there is any issue, you can restart your VM on VMware.
Migrating from Compute Engine
To migrate VMs from Compute Engine to GKE:
- Stop your Compute Engine VM.
- Run a script to create a YAML configuration file information on the VM.
- Apply the YAML configuration to your GKE cluster. Migrate for Anthos will take a snapshot of your VM's disks and create a GKE container from it. The container launches when the snapshot completes.
- If there is any issue, you can restart your Compute Engine VM.