1

rancher

I have two ranchers, (rancher1, rancher2), I have some clusters in my rancher1, my objectif is to migrate all cluster from rancher1 to rancher2. (rancher2 is deployed using ha rke, however rancher1 is deployed using docker)

Anyone have an idea ?

Yassine
  • 11
  • 4

2 Answers2

0

simple. unjoin the downstream cluster from rancher-1 and then join it to rancher-2.

P Ekambaram
  • 15,499
  • 7
  • 34
  • 59
  • this may take time, because of many clusters, i need to pass by each nodes and join them to new rancher-2. there's a way to make them point directly to the new rancher ? – Yassine Mar 23 '22 at 11:09
  • you dont need to join each node. Just generate join command and you are taken to a page showing the cluster id and the manifest ( having cluster agent deployment ) file. copy the content and execute using kubectl apply on the downstream cluster. it would be joined to the rancher – P Ekambaram Mar 24 '22 at 04:06
  • so if I understand, I need to access to my new rancher, generate a join command, after this execute the manifest content into my different clusters to join my new rancher. can i have the command to generate join command ? thanks – Yassine Mar 24 '22 at 10:38
  • you can do from rancher ui using Cluster Management option – P Ekambaram Mar 24 '22 at 13:49
0

This doc shows how to migrate from one Rancher to another: https://rancher.com/docs/rancher/v2.5/en/backups/migrating-rancher/

WPWoodJr
  • 1,155
  • 1
  • 12
  • 16