Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
209 changes: 159 additions & 50 deletions docs/platform/guides/cluster-management/cluster-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@ layout: docs
menu:
docsplatform_{{.version}}:
identifier: cluster-upgrade
name: Upgrade Cluster
name: Upgrade ACE Clusters
parent: cluster-management
weight: 80
menu_name: docsplatform_{{.version}}
section_menu_id: guides
---


# Upgrading Your KubeDB Platform: Management, Imported, and Spoke Clusters
# Upgrade the KubeDB Platform: Management, Imported, and Spoke Clusters

## Overview

Upgrade a **KubeDB Platform** deployment across all cluster tiers: the base management cluster, the KubeDB Platform cluster, general imported clusters, and spoke clusters. The example below upgrades from release `2025.5.16` to `2025.6.x`.
This guide is the standard procedure for moving a self-hosted **KubeDB Platform** deployment to a
new release. It covers upgrading every cluster tier and the checks to run before and after the
upgrade. If something goes wrong, see [Troubleshooting](../troubleshooting.md).

---

Expand All @@ -35,7 +36,36 @@ Upgrade a **KubeDB Platform** deployment across all cluster tiers: the base mana
└─────────────────────┘ └─────────────────┘ └────────────────┘
```

Each tier is upgraded separately; the order matters.
| Tier | What it is | Where you upgrade it |
|---|---|---|
| **Management (hub) cluster** | The cluster that runs the KubeDB Platform itself (the `ace-installer` release and the `ace` namespace). | **Platform UI → Site Administration → ACE Upgrade** |
| **Spoke cluster** | A cluster joined to a hub and grouped in a **ClusterSet**. | **Hub UI → ClusterSet → spoke → Update ACE resources** |
| **Imported cluster** | A cluster imported directly into the platform, without a hub. | **Console → cluster → Settings → Update Version** |

See [Cluster Types & Feature Sets](../hub-and-spoke-featuresets.md) if you are not sure which tier
a cluster belongs to.

Each tier is upgraded separately; the order matters:

1. Run the [Pre-checks](#pre-checks) and fix anything that is not healthy.
2. [Download the new installer values file](#step-1--download-the-new-installer-values-file).
3. [Upgrade the management cluster](#step-2--upgrade-the-management-cluster).
4. [Upgrade spoke clusters](#step-3--upgrade-spoke-clusters), one by one.
5. [Upgrade imported clusters](#step-4--upgrade-imported-clusters), one by one.
6. [Update each ClusterSet](#step-5--update-the-clusterset) after all of its spokes are upgraded.
7. Run the [Post-checks](#post-checks).

---

## Prerequisites

- You can log in to [appscode.com](https://appscode.com) and switch to the organization that owns
the installer.
- You are a site administrator of the KubeDB Platform.
- You have a working kubeconfig with cluster-admin access to the management cluster and to every
imported and spoke cluster you plan to upgrade.
- You have a recent backup of the platform database (`ace-db`). The platform archives it
continuously when backup is configured; confirm the latest backup succeeded before you start.

---

Expand All @@ -47,6 +77,25 @@ of an unhealthy cluster is much harder to troubleshoot.
- [ ] **Versions known.** Log in to [appscode.com](https://appscode.com), switch to your
organization, open your installer, click **View Details**, and note the **current** and
**target** versions. Read the target release's CHANGELOG.

![Installer details showing the current release and the available Upgrade action](../images/upgrade/installer-view-details.png)

- [ ] **Management cluster on the current version.** The `ace` HelmRelease chart version matches
the current version you recorded:
```bash
helm list -A | grep -E 'ace-installer|opscenter-features'
kubectl get hr ace -n kubeops -o jsonpath='{.spec.chart.spec.version}{"\n"}'
```
- [ ] **Spoke versions known.** On the management cluster, the `CURRENT VERSION` column shows the
version each spoke is running. Note every spoke that is not on the current version:
```bash
kubectl get managedclusterprofilebinding -A
```
```text
NAMESPACE NAME STATUS CURRENT VERSION AGE
ace-spoke ace-spoke v2026.10.30 4d21h
remove-fix-1 remove-fix-1 v2026.10.30 88m
```
- [ ] **Tested on non-prod.** The same upgrade was applied to a QA / non-prod environment and
passed the [Post-checks](#post-checks).
- [ ] **AppsCode notified.** At least 72 hours ahead, with the maintenance window and the
Expand Down Expand Up @@ -80,27 +129,33 @@ kubectl get helmreleases -A -w

## Upgrade Flow

### Step 1 — Download the new installer archive
### Step 1 — Download the new installer values file

1. On the installer page, click **Upgrade to <x.y.z>**.
2. Click **Download** to get the updated `.values` (val) file.
3. The downloaded archive lands in your local archive folder (e.g., `archive2/`).
1. On the installer page at [appscode.com](https://appscode.com), click **Upgrade to <x.y.z>**,
the target version.
2. Wait for the installer page to show the target version.
3. Click **Download** and save the values file.

![Installer version history showing the target release and the Download button](../images/upgrade/installer-download.png)

```bash
# Optional: inspect the downloaded values file before applying
cat ~/Downloads/<release>.values.yaml
cat ~/Downloads/<target-version>.values.yaml
```

---

### Step 2 — Apply the upgrade via Platform UI
### Step 2 — Upgrade the management cluster

1. Switch from the **Console UI** to the **Platform UI**.
2. Go to **User Settings → Upgrade**.
3. Select the val file downloaded in Step 1.
1. Log in to your self-hosted KubeDB Platform. If you are in the **Console UI**, switch to the
**Platform UI**.
2. Open your organization and go to **Site Administration → ACE Upgrade**.
3. Click **Upgrade Version** and select the values file you downloaded in Step 1.
4. Click **Update Version**.

The platform creates a background job that updates Helm releases one by one.
The page shows the current version and the version being installed. The platform starts a
Kubernetes Job that upgrades the `ace-installer` release, which then rolls the HelmReleases
forward one by one.

```bash
# Monitor the upgrade job on the management cluster
Expand All @@ -110,68 +165,103 @@ kubectl get jobs -n ace -w
kubectl get helmreleases -A -w
```

> **Expected state:** `current version: 5.16 → update in progress: 6.16`
> **Expected state:** The target-version row shows **Progressing** while its components reconcile.

The upgrade takes several minutes. Verify the management cluster when it finishes:

```bash
helm list -A | grep -E 'ace-installer|opscenter-features'
kubectl get hr -n kubeops
kubectl get hr ace -n kubeops -o jsonpath='{.spec.chart.spec.version}{"\n"}'
```

Once the job completes, verify the op-center feature set reflects the new version.
The management cluster is upgraded when the `ace` HelmRelease shows the target version and every
HelmRelease in `kubeops` reports `READY` as `True`.

---

### Step 3 — Upgrade spoke clusters

Spoke clusters are imported as **generic DBaaS** generally. Update them individually before
updating the cluster set.
updating the cluster set. Repeat these steps for each spoke.

1. In the **Console**, go to your **organization** and open the **Hub Cluster**.
2. Go to the **KubeDB Platform / Hub UI**.
3. Select the ClusterSet the spoke was imported into, for example **Generic DBaaS**.
4. In the **Cluster list**, select the spoke cluster.

![ClusterSet page in the Hub UI with the spoke cluster in the cluster list](../images/upgrade/upgrade_1.png)

5. From the sidebar, open **Update ACE resources**.
6. On the **ACE version** page, click **Upgrade version**.

![Spoke ACE version page showing the current release as Outdated and the Upgrade version button](../images/upgrade/spoke-upgrade-version.png)

1. In the Console, go to **Your Organization → Hub Cluster → KubeDB Platform**.
2. Select the correct **Cluster set** (how you imported). For example, Generic DBaaS.
3. Select your spoke cluster.
4. Click **Update KubeDB Platform Resources → Update Version → Yes**.
7. Confirm the target version in the dialog and click **Upgrade**.

![Upgrade](../images/upgrade/upgrade_1.png)
![Spoke upgrade confirmation dialog showing the target version and the Upgrade button](../images/upgrade/upgrade_3.png)

The cluster set manifest (which holds metadata about all spoke clusters) updates almost
instantly. The underlying Helm releases take longer — wait for them to reconcile before moving on.

```bash
# After triggering, watch the QB operator start the upgrade on the spoke
# On the management cluster: CURRENT VERSION shows the target version
kubectl get managedclusterprofilebinding -A

# On the spoke: watch the HelmReleases roll forward
kubectl get helmreleases -A -w --context <spoke-cluster-context>

# Wait for all pods to return to Running
kubectl get pods -A --context <spoke-cluster-context>
kubectl get pods -A --context <spoke-cluster-context> | grep -vE 'Running|Completed'
```

The cluster set manifest (which holds metadata about all spoke clusters) updates
almost instantly. The underlying Helm releases take longer — wait for them to
reconcile before moving on.
The spoke is upgraded when `CURRENT VERSION` shows the target version and every HelmRelease on the
spoke is `Ready`.

---

### Step 4 — Upgrade general imported clusters
### Step 4 — Upgrade imported clusters

Repeat these steps for each imported cluster.

1. In the **Console**, open the **General Imported Cluster**.
2. Go to **Settings**.
3. Click **Update Version** and confirm with **Yes**.

<!-- SCREENSHOT: images/upgrade/imported-cluster-settings.png — imported cluster Settings page with the Update Version option -->

1. In the Console, select the **General Imported Cluster**.
2. Open its **Settings** page and click **Update Version**.
This path updates Helm releases directly (not via a cluster set), so progress is visible
immediately.

```bash
# Verify on the imported cluster
kubectl get helmreleases -A --context <imported-cluster-context>
kubectl get helmreleases -A -w --context <imported-cluster-context>
kubectl get pods -A --context <imported-cluster-context> | grep -vE 'Running|Completed'
```

This path updates Helm releases directly (not via a cluster set), so progress is
visible immediately.
The cluster is upgraded when every HelmRelease is `Ready` on the target version and all pods are
`Running` or `Completed`.

---

### Step 5 — Update the cluster set
### Step 5 — Update the ClusterSet

After **all** individual clusters are on the new version:
Update a ClusterSet only after **every** cluster in it is on the target version.

1. In the Console, go to **Your Organization → Hub Cluster → KubeDB Platform**.
2. Select the correct **Cluster set** (how you imported). For example, Generic DBaaS.
3. Click **Update Cluster Set**.
1. In the **Hub UI**, open the ClusterSet, for example **Generic DBaaS**.
2. Under **All cluster overview**, the **Current version** still shows the old version.
3. Click **Update Cluster Set** and confirm.

<!-- SCREENSHOT: images/upgrade/clusterset-update.png — ClusterSet page showing the old Current version and the Update Cluster Set button -->

```bash
# Confirm cluster set version
kubectl get clusterset -A
```

> Before clicking **Update Cluster Set**, you will see the cluster set still shows the old version (e.g., `5.6`).
> After the update it will be marked as **unaligned** briefly, then reconcile.
After the update, **Current version** shows the target version and no cluster is labelled
**unaligned**.

![Showing an unaligned cluster before the ClusterSet is updated](../images/cluster_and_clusterset/unaligned.png)

---

Expand Down Expand Up @@ -210,8 +300,11 @@ only when every item passes.
```bash
kubectl get managedclusters
```
- [ ] **Every spoke on the target version** in the `CURRENT VERSION` column of
`kubectl get managedclusterprofilebinding -A`.
- [ ] **Cluster set updated** (Step 5) and no longer shown as unaligned.
- [ ] **Every cluster `Active`** through the API (see [Using the API](#using-the-api)).
- [ ] **Databases reachable** and reporting `Ready` in the Console.

If any check fails, see [Troubleshooting](../troubleshooting.md).

Expand Down Expand Up @@ -247,6 +340,9 @@ done
`remove` is asynchronous: call it once and poll `status`. See
[Removing through the API](../troubleshooting.md#removing-through-the-api).

To trigger and track the management-cluster upgrade itself through the API, see the
[Platform Upgrade API](../../../api/ace-upgrade/overview.md).

---

## Lessons Learned
Expand All @@ -264,22 +360,35 @@ done
## Quick Reference

```
appscode.com → Download val file
appscode.com → Installer → Upgrade → Download values file
↓
Platform UI → Update Version (Management / Platform cluster)
Platform UI → Site Administration → ACE Upgrade → Update Version (management cluster)
↓
Console → Generic DBaaS → Update KubeDB Platform Resources (each spoke)
Hub UI → ClusterSet → Spoke → Update ACE resources (each spoke)
↓
Console → Generic DBaaS → Update Cluster Set
Console → Imported Cluster → Settings → Update Version (each imported cluster)
↓
Console → Imported Cluster → Settings → Update Version
Hub UI → ClusterSet → Update Cluster Set (each ClusterSet)
↓
Verify: helm list -A across all contexts
Post-checks
```

No downtime during upgrade procedure — the platform performs rolling Helm release updates and
most workloads stay running throughout.

---
Here is a sample video on how you can setup the full platform:
<iframe width="1900" height="869" src="https://www.youtube.com/embed/99_8acxcr-s" title="6. Upgrade procedure" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

## Video Walkthrough

<iframe width="1900" height="869" src="https://www.youtube.com/embed/99_8acxcr-s" title="6. Upgrade procedure" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

---

## Related

- [Troubleshooting](../troubleshooting.md) — stuck reconciliation, failed HelmReleases, spoke and
ClusterSet issues, removing clusters.
- [Site Administration: KubeDB Platform Upgrade](../../account-management/site-administration/ace-upgrade.md)
- [Upgrade Spoke](../hub-ui/upgrade.md) — upgrade a single spoke from the Hub UI.
- [Cluster & Clusterset](../hub-ui/cluster-and-clusterset.md) — how ClusterSets group spokes.
- [Platform Upgrade API](../../../api/ace-upgrade/overview.md) — trigger and track upgrades through the API.
27 changes: 18 additions & 9 deletions docs/platform/guides/cluster-management/hub-ui/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,37 @@ menu:
identifier: hub-ui-upgrade
name: Upgrade Spoke
parent: hub-ui
weight: 80
weight: 90
menu_name: docsplatform_{{.version}}
section_menu_id: guides
---

# Upgrade a Spoke Cluster

Use this page to upgrade a single spoke cluster from the Hub UI. Upgrade the management cluster first, and update the ClusterSet after all of its spokes are upgraded. For the full procedure, including pre-checks, post-checks, and troubleshooting, see [Upgrade Cluster](../../cluster-upgrade.md).

1. In the Hub UI, open the ClusterSet that contains the spoke you want to upgrade, then select the spoke in the **Cluster list**.

# Upgrade spoke cluster
![ClusterSet page in the Hub UI with the spoke cluster in the cluster list](../../images/upgrade/upgrade_1.png)

1. Go to clusterset of the cluster that you want to upgrade to latest version
2. The spoke's feature sets are shown inside the hub. To give a spoke different features than the hub, configure them here.

![Upgrade](../../images/upgrade/upgrade_1.png)
![Spoke feature sets shown inside the hub](../../images/upgrade/upgrade_2.png)

2. You will see the spoke featureset inside the hub
3. From the sidebar, open **Update ACE resources**. If a newer version is available, click **Upgrade version** and confirm with **Upgrade**.

![Upgrade](../../images/upgrade/upgrade_2.png)
![Upgrade version confirmation dialog for a spoke cluster](../../images/upgrade/upgrade_3.png)

To give a spoke different features than the hub, configure them here.
4. Verify the new version from the management cluster:

3. Go to **Upgrade Version** from the sidebar. If a latest version is available, click the upgrade button.
```bash
kubectl get managedclusterprofilebinding -A
```

![Upgrade](../../images/upgrade/upgrade_3.png)
The spoke's `CURRENT VERSION` should show the target version. The HelmReleases on the spoke update over the next few minutes. Check them from the spoke with `kubectl get hr -A`.

5. After every spoke in the ClusterSet is upgraded, open the ClusterSet and click **Update Cluster Set**.

If the spoke's version does not change or the ClusterSet stays unaligned, see [Troubleshooting](../../troubleshooting.md).

<!-- SCREENSHOT: images/upgrade/clusterset-update.png — ClusterSet page showing the Update Cluster Set button -->
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading