Upgrade Migrate for Anthos and GKE to 1.11.0
This document describes how to upgrade your current installation of Migrate for Anthos and GKE to version 1.11.0.
You typically delete all existing migrations before you perform the upgrade. If any migrations are currently running, wait for them to complete and then delete them. However, do not delete your migration sources. Migration sources are updated as part of the upgrade process.
Upgrade paths
You can upgrade Migrate for Anthos and GKE to version 1.11.0 from the following versions:
Current version | Upgrade path | Notes |
---|---|---|
1.10.x | >> 1.11.0 | |
1.9.x | >> 1.11.0 | |
1.8.x and previous | >> 1.11.0 | No upgrade path from previous versions. |
Use migctl to perform the upgrade
The upgrade process you use is based on the environment where you run migctl
:
When using Google Kubernetes Engine (GKE) or Anthos processing clusters in Google Cloud, you run
migctl
in Cloud Shell.In Cloud Shell, the latest release of
migctl
is installed automatically. You then only have to upgrade your processing clusters.When using an Anthos clusters on VMware or Anthos clusters on AWS processing cluster, install
migctl
on your admin workstation.You first download and install the latest release of
migctl
on your on-prem admin workstation, then use it to upgrade your processing clusters.
Upgrade
To upgrade a previous release of Migrate for Anthos and GKE to version 1.11.0:
Connect to your processing cluster:
migctl on Google Cloud
Visit the GKE menu in Cloud console.
In the list of clusters, locate the cluster you are using as a processing cluster and click its Connect button.
In the Connect to the cluster dialog, under Command-line access, click Run in Cloud Shell to run the connect command in Cloud Shell.
gcloud container clusters get-credentials cluster-name --zone zone-name --project project-name
migctl on VMware
- Connect to your cluster. For more information, see Connecting to Google.
migctl on AWS
- Connect to your cluster. For more information, see Creating a user cluster.
Check for any existing migrations and delete them:
List current migrations:
migctl migration list NAME STATUS CURRENT-OPERATION my-migration Completed GenerateArtifacts another-migration Running GenerateMigrationPlan
Delete all completed migrations, one by one, using the following command:
migctl migration delete my-migration
For any migration that is currently running, repeat "Step a" above and wait for it to complete. Then delete it.
Use the
migctl version
command to determine your current version. For example:migctl version
Returns:
Migrate for Anthos and GKE version: 1.10.1
Upgrade the cluster:
migctl on Google Cloud
If you are currently on version 1.8.x, 1.9.x, or 1.10.x, upgrade to 1.11.0:
In Cloud Shell run the command:
migctl setup upgrade
The command:
Uninstalls version 1.8.x, 1.9.x, or 1.10.0 of Migrate for Anthos and GKE, and installs version 1.11.0.
Upgrades existing 1.8.x, 1.9.x, 1.10.0 migration sources to version 1.11.0.
migctl on VMware
Deploy migctl on your admin workstation:
wget https://anthos-migrate-release.storage.googleapis.com/v1.11.0/linux/amd64/migctl
sudo cp migctl /usr/local/bin/
sudo chmod +x /usr/local/bin/migctl
. <(migctl completion bash)
If you are currently on version 1.8.x, 1.9.x, or 1.10.x, upgrade to 1.11.0:
Run the upgrade:
migctl setup upgrade --gkeop
The command:
Uninstalls version 1.8.x, 1.9.x, or 1.10.0 of Migrate for Anthos and GKE, and installs version 1.11.0.
Upgrades existing 1.8.x, 1.9.x, or 1.10.0 migration sources to version 1.11.0.
migctl on AWS
Deploy migctl on your admin workstation:
wget https://anthos-migrate-release.storage.googleapis.com/v1.11.0/linux/amd64/migctl
sudo cp migctl /usr/local/bin/
sudo chmod +x /usr/local/bin/migctl
. <(migctl completion bash)
If you are currently on version 1.8.x, 1.9.x, or 1.10.0, upgrade to 1.11.0:
In Cloud Shell run the command:
migctl setup upgrade --gke-on-aws
The command:
Uninstalls version 1.8.x, 1.9.x, or 1.10.0 of Migrate for Anthos and GKE, and installs version 1.11.0.
Upgrades existing 1.8.x or 1.9.x migration sources to version 1.11.0.
Validate the upgrade by running the
migctl doctor
command.Before the upgrade has completed, you might see a message such as the following. If so, wait a few minutes for the upgrade to finish before running
migctl doctor
again.migctl doctor [✓] Deployment [✓] Admission Controller [!] Components Job controllers-deploy-cert is not ready Job controllers-upgrade is not ready
In the following example output, the check mark indicates that Migrate for Anthos and GKE has been successfully upgraded.
migctl doctor [✓] Deployment [✓] Docker registry [✓] Artifacts repo [✓] Source Status
If you are upgrading to version 1.6 or later,
migctl doctor
now displays theDocker registry
,Artifacts repo
, andSource Status
fields, where:Docker registry
andArtifacts repo
display [✓] if your data repositories are configured correctly. See Defining data repositories if there is an error associated with the Docker registry or artifacts repository.Source Status
shows [!] until you define your first migration source. See Adding a migration source more (Linux) or Adding a migration source more (Windows).
After the upgrade completes, you must recreate your migrations to validate that the migration sources were upgraded successfully. See Creating a migration.