Migrating Namespaces from Geddes (RKE1) to Geddes2 (RKE2)¶
This guide explains how to migrate namespaces between the Geddes (RKE1) cluster and the Geddes2 (RKE2) cluster using Rancher and kubectl.
Configure kubectl Contexts¶
To migrate namespaces between Geddes and Geddes2, first add both cluster kubeconfigs as contexts in your local kubectl configuration.
Step 1 — Download kubeconfig from Rancher¶
For each cluster:
- Open Rancher
- Navigate to the cluster
- Click Kubeconfig
- Copy or download the kubeconfig
You should end up with files similar to:
Step 2 — Test Each kubeconfig Separately¶
Verify that each kubeconfig can successfully connect to its cluster.
Test Geddes (RKE1)¶
Test Geddes2 (RKE2)¶
If both commands work successfully, continue to the next step.
Step 3 — Merge kubeconfigs¶
Temporarily merge both kubeconfig files:
Then merge them into your default kubeconfig:
Step 4 — Verify Contexts¶
Verify that both cluster contexts are available:
Example output:
Step 5 — Test Switching Contexts¶
Switch to Geddes¶
Verify access:
If this command works, your context and permissions are configured correctly.
Switch to Geddes2¶
Step 6 — Use Contexts Directly¶
You can now run commands against either cluster directly.
Geddes¶
Geddes2¶
Exporting Namespace from Geddes (RKE1) to Geddes2 (RKE2)¶
Using Rancher UI (Recommended)¶
On Geddes (GDS)¶
- Log in to the Geddes Rancher UI
- Navigate to the Geddes cluster (
GDS) - Open Projects / Namespaces
- Locate your assigned namespace
- Record the exact namespace name
On Geddes2 (GS2)¶
- Navigate to the Geddes2 cluster (
GS2) - Open Projects / Namespaces
- Click Create Namespace
- Enter the same namespace name used on Geddes
- Click Create
Exporting Namespace Resource Quotas from Rancher¶
This section explains how to review and document namespace Resource Quotas before migrating workloads to Geddes2.
Important Notes¶
If your Project already has default namespace Resource Quotas configured, Rancher will automatically apply those default quotas when the namespace is recreated on Geddes2.
In most cases, you do not need to manually recreate Resource Quotas.
You only need to perform this step if:
- the namespace quotas were manually modified
- additional resources were added
- limits were reduced or customized for the namespace
Examples include:
- custom CPU limits
- increased memory quotas
- modified storage limits
Steps to Export / View Namespace Resource Quotas¶
1. Log in to Rancher¶
Open the Rancher web interface and log in using your credentials.
2. Select Your Project¶
Navigate to:
- the target cluster
- your Project
- the namespace you plan to migrate
3. Open Namespace Configuration¶
Locate your namespace in the namespace list.
On the far-right side of the namespace row:
- Click the three dots (
⋮) - Select Edit Config from the drop-down menu
4. Review Resource Quotas¶
Inside the namespace configuration page, review the configured Resource Quotas.
Examples may include:
- CPU limits
- memory limits
- storage quotas
- pod limits
Document these values carefully.
5. Recreate Resource Quotas on Geddes2¶
When recreating the namespace on Geddes2:
- apply the same custom Resource Quota values
- ensure any modified limits match the original namespace configuration
If no custom quotas were configured, Rancher will automatically apply the Project default quotas.