Migrate between Kubernetes clusters with Tanzu (Rancher to Tanzu)

Published by Bill on (Updated: )

Context

A customer asked how I might approach the challenge of migrating applications running on one Kubernetes cluster and restore them onto a new cluster running a different Kubernetes distribution. Assuming you don’t need to migrate the applications under load, backup and restore is a reasonable option.

I recorded two demonstrations showing how to use Tanzu Mission Control to migrate an application between two clusters:

  • The first (this video) shows a migration from Rancher to Tanzu Kubernetes Grid
  • The second (see here) shows a migration from Rancher to Azure AKS

Overview:

Source: Rancher on GKE (with Longhorn)
Destination: Tanzu Kubernetes Grid on vSphere (with VSAN)

  • View the applications running
  • Use Tanzu Mission Control to take a backup
  • Use Tanzu Mission Control to restore into a new cluster
  • Confirm the restore included persisted data

Notes:

To migrate an application between clusters you must ensure the target cluster contains the appropriate storage class. In this demo I made sure I had a storage class named default in each cluster. Despite the common name, the storage providers in each cluster were different. The storage provided in each cluster will exhibit different performance characteristics. You will want to ensure that the target storage class is appropriate for your use case.

Products: