mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-04-29 17:53:18 +00:00
Merge pull request #1953 from OdedNeuhaus/patch-1
Scale down the original Rancher server
This commit is contained in:
+28
@@ -197,3 +197,31 @@ helm install rancher rancher-latest/rancher -n cattle-system -f rancher-values.y
|
||||
After migration completes, update your DNS records and any load balancers, so that traffic is routed correctly to the migrated cluster. Remember that you must use the same hostname that was set as the server URL in the original cluster.
|
||||
|
||||
Full instructions on how to redirect traffic to the migrated cluster differ based on your specific environment. Refer to your hosting provider's documentation for more details.
|
||||
|
||||
### 6. Scale Down the Original Rancher Instance
|
||||
|
||||
After redirecting traffic to the new Rancher environment, **scale the original Rancher instance to 0 replicas** so it no longer contacts your managed clusters.
|
||||
|
||||
Leaving the old server up can cause agents to keep contacting the original `server-url`, which often leaves clusters stuck in **Updating** in the new environment.
|
||||
|
||||
```bash
|
||||
kubectl scale deployment rancher -n cattle-system --replicas=0
|
||||
```
|
||||
|
||||
If you originally ran Rancher in Docker:
|
||||
|
||||
```bash
|
||||
docker stop <original-rancher-container>
|
||||
```
|
||||
|
||||
:::note
|
||||
|
||||
If you wish to keep the original Rancher environment running, you can also restart the cattle-cluster-agent pods on each cluster connected to your Rancher environment.
|
||||
|
||||
```bash
|
||||
kubectl rollout restart deployment cattle-cluster-agent -n cattle-system
|
||||
```
|
||||
|
||||
This triggers a rolling restart of the agent so it re-establishes the connection to the new Rancher environment.
|
||||
|
||||
:::
|
||||
|
||||
Reference in New Issue
Block a user