Upgrade a Kubernetes cluster

Upgrade a cluster to the next minor version. We create a snapshot of the control plane first. Then we upgrade the control plane, and then the workers. The cluster must be running or degraded. The cluster's version changes before we install the new version. The upgrade is done when every worker is ready and reports the new build from betterstack kubernetes-version list. When the snapshot before the upgrade fails, the upgrade doesn't start, and the cluster goes back to running on the old version with a status_message.

POST https://{availability_zone}.betterstackcloud.com/v1/kubernetes-clusters/{id}/upgrade
id string required

The ID of the Kubernetes cluster to upgrade.

Authorization string required

Bearer $TOKEN

Content-Type string

application/json

version string required

The version to upgrade to, one of the cluster's available_versions.

202 Accepted
{
  "pre_upgrade_snapshot_id": "123456789"
}

Returns the Kubernetes cluster.

pre_upgrade_snapshot_id string or null

The ID of the snapshot we create before the upgrade. Restore it to roll the upgrade back.