Move one cluster workloads to another

Santhya Rama S 120 Reputation points
2024-02-21T09:08:51.8533333+00:00

Hi,Is there an option to move all the workloads from one cluster to another ?

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,447 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anveshreddy Nimmala 3,550 Reputation points Microsoft External Staff Moderator
    2024-02-22T04:31:51.33+00:00

    Hello @Santhya, welcome to microsoft Q&A,Thankyou for posting your query here. Velero is a backup and restore tool for Kubernetes clusters that can be used to migrate workloads between clusters. Here are the general steps to use Velero for migration. Install Velero on both the source and destination clusters. You can follow the instructions in the Azure documentation to install Velero on AKS clusters. https://velero.io/docs/v1.7/basic-install/ Create a backup of the workloads on the source cluster using Velero. You can use the following command to create a backup: velero backup create <name of backup> --include-namespaces=<namespace pf workloads> --selector= <label-selector that matches backup> Copy the backup to the destination cluster. You can use Azure Blob Storage to store the backup and copy it to the destination cluster. Restore the backup on the destination cluster using Velero. You can use the following command to restore the backup: velero restore create --from-backup <name of backup you want to restore> Verify that the workloads are running correctly on the destination cluster. You can use kubectl to check the status of the workloads on the destination cluster. Hope this helps you, please consider accepting the answer to help increase visibility of this question for other members of the Microsoft Q&A community. If not, please let us know what is still needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Adharsh Santhanam 6,015 Reputation points Volunteer Moderator
    2024-02-21T14:33:07.8266667+00:00

    Hello @Santhya Rama S You can look at using either Azure Migrate or Velero for migrating workloads from one AKS cluster to another. Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.