Version lifecycle and upgrades
Every managed Kubernetes cluster runs one Kubernetes minor version. Each minor version has a lifecycle status, and you upgrade a cluster in place, one minor version at a time.
Version statuses
| Status | New clusters | Upgrade target | What it means for a cluster on it |
|---|---|---|---|
current | Offered | Offered | The newest version the platform offers. |
supported | Offered | Offered | Fully supported. |
deprecated | Offered, marked deprecated | Offered | It reaches end of life on its end-of-life date, when one is set. Plan an upgrade. |
eol | Not offered, refused | Not offered | It has reached end of life and no longer receives fixes. Upgrade it. |
A cluster on an eol version keeps running. A status other than those above is shown as plain text; treat it as information only.
Where to see it:
- Portal — the cluster's detail page marks a Deprecated or End of life version, with its end-of-life date.
- fm —
fm kubernetes cluster get <cluster-id>prints Version Lifecycle (the status, and the end of life when one is set) and Available Upgrades.fm kubernetes version listlists the versions on offer with their status and end-of-life date. A version no longer on offer is not listed there: read your cluster's own lifecycle withcluster get. - Terraform — the
frostmoln_kubernetes_versionsdata source lists the versions on offer. It does not report a cluster's own lifecycle.
How an upgrade works
- One minor version at a time. You can only upgrade to the next minor version, and only when the cluster lists it under Available Upgrades. To move further, upgrade again once the first upgrade has finished.
- The control plane first, then each node pool. An upgrade can take several hours.
- Never a downgrade. Kubernetes is never downgraded, and no client replaces a cluster to change its version.
The Kubernetes API during the upgrade
- On a Standard cluster (one control-plane node), the Kubernetes API is unavailable while the control plane is replaced. Your workloads keep running, but anything that needs the API waits: scheduling new pods, autoscaling, and controllers and operators.
- On a Production cluster (three control-plane nodes), the Kubernetes API stays available.
The drain
Every node is drained and replaced:
- PodDisruptionBudgets are honoured for up to 30 minutes per node. After that, the remaining pods on the node are deleted.
- Admission webhooks. A webhook with
failurePolicy: Failthat rejects evictions makes the drain wait for that 30-minute deadline on each node running a pod it refuses to evict. - Data on a node's local disk, such as
emptyDir, is lost with the node. Run several replicas, and make sure a workload can restart cleanly.
Node pools while it runs
Node pool create, scale and delete are refused until the upgrade finishes, including re-creating a failed pool. The API answers 409 cluster_upgrading.
Forward-only, and how to resume
Once the new control plane serves, the upgrade cannot be undone.
- If it stops after that point, the cluster stays upgrading and keeps serving, with a reason (below). Resume it by starting the same upgrade again with the same version: Resume upgrade in the portal, the same
fm kubernetes cluster upgradecommand, or anotherterraform apply. The exception iscommit_not_converged: there is nothing for you to resume. - If it stops before anything runs the new version, the cluster is running again on its old version, with the reason shown as the last upgrade's. You can start a new upgrade.
When an upgrade stops
The reason is shown in the portal, by fm kubernetes cluster get (Upgrade Failure) and as upgradeFailure in the API. While the cluster is upgrading, it keeps serving, and node pool changes wait until the upgrade finishes.
| Reason | What it means and what to do |
|---|---|
pool_not_converged | A node pool did not finish moving to the new version. Resume (or, on a running cluster, upgrade again) to continue. |
cp_member_missing | A control-plane node could not be replaced, so the cluster runs with less redundancy. Frostmoln has been alerted. On an upgrading cluster, resume the upgrade. On a running cluster nothing ran the new version, but the control plane is one node short until Frostmoln repairs it. |
commit_not_converged | The upgrade reached the new version, but a final check failed. Frostmoln has been alerted; no action is needed from you. There is nothing to resume. |
InsufficientCapacity | The platform did not have capacity for this step. Resume, or upgrade again, later. If it keeps happening, contact support. |
QuotaExceeded | Your quota did not allow the extra node the upgrade needs during replacement. Raise the quota or free resources, then resume or upgrade again. |
addon_not_verified | An add-on is pinned to a version not verified on the new Kubernetes version. Move it to a newer version (the cluster's Add-ons tab, or fm kubernetes cluster pin-addons), then resume or upgrade again. |
platform_images_not_converged, rollout_in_progress | A platform update of this cluster is still settling. Resume or upgrade again in a while. |
upgrade_path_unavailable, cluster_record_incomplete | Frostmoln cannot take this cluster to the new version right now. Contact support. |
unknown, or any other value | The upgrade stopped. Resume it, or upgrade again. If it stops again, contact support. |
Who may upgrade
An upgrade needs two permissions on the cluster: kubernetes:kubernetes-clusters:upgrade and kubernetes:kubernetes-clusters:create. Resuming needs the same.
- Owner and Admin hold both.
- Member and Developer do not.
- A group whose access policy names both operations grants them, and so does a custom role that holds them.
- An access-policy API key cannot start or resume an upgrade today, whatever its policy says. Sign in with
fm auth loginand upgrade as yourself. Never copy an fm sign-in into CI or other automation.
Before you upgrade
- Removed APIs. A new Kubernetes version can remove APIs that an older one served. The platform does not check your workloads for them: check your manifests, Helm charts and operators yourself against the upstream Deprecated API Migration Guide.
- kubectl. kubectl is supported within one minor version of the cluster. After the upgrade, update kubectl if it is now more than one minor version behind the cluster.
- Add-ons. Move any add-on pinned to an old version to one verified on the new version (see Add-on versions).
- Disruption. Check your PodDisruptionBudgets and admission webhooks against the drain, and plan for the API outage on a Standard cluster.
Start an upgrade
Portal
Open the cluster. The Kubernetes version card offers Upgrade to the next version when one is available, and Resume upgrade when an upgrade has stopped and can be resumed. The dialog states what the upgrade does before you confirm.
fm
# The Available Upgrades line lists the version you can upgrade to.
fm kubernetes cluster get <cluster-id>
# Start the upgrade. fm asks you to confirm; --yes skips that, and without a
# terminal fm refuses unless you pass it. --wait follows it to the end.
fm kubernetes cluster upgrade <cluster-id> --version <version> --waitThe same command with the same --version resumes a stopped upgrade, except one stopped with commit_not_converged. See the CLI reference.
Terraform
Raise version on frostmoln_kubernetes_cluster to the next minor version. The cluster is upgraded in place, never replaced, and the apply waits for the upgrade (timeouts.update, 6 hours when unset). Lowering version is refused before anything changes. If the upgrade stops, the apply fails and names the reason. Applying again resumes it, except for the reasons that need Frostmoln (commit_not_converged, upgrade_path_unavailable, cluster_record_incomplete): contact support first. Run the apply signed in with fm auth login, with no API key in the provider's api_key, in FROSTMOLN_API_KEY or in the fm CLI configuration. See the resource reference.
API
curl -X POST "https://api.frostmoln.cloud/api/v1/tenants/$TENANT_ID/kubernetes-clusters/$CLUSTER_ID/upgrade" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"kubernetesVersion":"<version>"}'$TOKEN is your own sign-in token: an access-policy API key is refused with 403.
202 means the upgrade was accepted, not finished. Read the cluster to follow it: it is upgrading with targetKubernetesVersion while it runs, and it has stopped when upgradeFailure is set. It has finished when the cluster is running on the target version with no upgradeFailure; a completed operation alone does not mean that. A refused resume leaves the cluster as it was, so read the operation (operationId in the 202 response, at GET /api/v1/tenants/{tenantId}/operations/{operationId}) to see why.