Skip to content

Maintenance window ​

Every managed Kubernetes cluster has one recurring weekly maintenance window. Once it is in force, it holds the hours when you accept disruptive platform updates to that cluster.

In force

The maintenance window is in force: the platform schedules disruptive updates by it, as described below. If the platform ever turns enforcement off for a cluster, the portal shows Not in force, fm says so and the API returns maintenance.enforced: false. While that holds, updates can run outside your window, and Apply now is refused with not_enforced.

What runs in the window ​

What an update means for you depends on the control-plane tier:

UpdateStandard (development, one control-plane node)Production (production, three control-plane nodes)
Control-plane updateIn the window. The Kubernetes API is unavailable while it runs.Not tied to the window. It runs at any time, with no outage.
Worker-node replacementIn the window. Every pod in the cluster restarts.In the window. Every pod in the cluster restarts.

Your workloads keep running during a control-plane update, but anything that needs the Kubernetes API has to wait: scheduling new pods, autoscaling, webhooks, and operators that depend on the API. Worker-node replacement starts the new nodes first but does not drain the old ones. Pods restart without a graceful drain, PodDisruptionBudgets do not hold them back, and data on a node's local disk, such as emptyDir, is lost. Plan for it the way you would for a node failure: run several replicas, and make sure a workload can restart cleanly.

A started run can finish after the window ends ​

The window decides when a run may start. A run that has started does not always end inside it.

  • A control-plane update on a Standard cluster is never stopped once it has started, because finishing it is what brings the API back. It normally takes a minute or two. If it runs into trouble it can continue well past the end of your window, in the worst case for several hours. A failed update can roll back, which brings the API back on the earlier version.
  • A worker-node replacement starts nothing new after the window ends. A node replacement already under way finishes, and the rest continues in a later window.

If you change the window during a worker-node replacement, the change can shorten or stop the run, but never extend it. A run stopped this way is not retried before the next occurrence of your window.

Deadlines and overrides ​

The window also decides how long a security fix waits, so it is not the only thing that can start an update:

  • Deadline. A security update can come with a deadline by which it must be applied. Once you have been told of it, the cluster shows the time from which the update can run outside your window. See Security updates below. The update is not started on a cluster with a node pool that is not active, or whose node pools run different Kubernetes minor versions.
  • Override. An update that cannot wait, for example for a vulnerability being actively exploited, can run outside your window. So can an update for a cluster whose window never leaves enough time for it.

An update listed as eligible from your next window (pending in fm and the API) is not a promise that it runs then, because the platform can defer a rollout, and a workers update does not start while the node pools run different Kubernetes minor versions.

Security updates ​

When a platform update fixes a security vulnerability, it gets a deadline by which every cluster must have it. How soon depends on how serious the vulnerability is: a critical one, and above all one known to be exploited, has a much shorter deadline than a high-severity one. An update that fixes nothing serious has no deadline and waits for your window.

  • You are told first. The deadline notice (see Who is told) says what the update fixes, with its severity and a few advisory IDs such as CVE numbers, and when it must be done. No deadline makes an update run outside your window before the notice period has passed.
  • Your window first. If your own window comes early enough before the deadline, the update can run there.
  • Otherwise at your hours, on any day. If your window would come too late, the update can run at your window's start time and duration on any day before the deadline, not only on your window's days. A critical fix can run from the first day after the notice period; a high-severity fix only in the last few days before its deadline.
  • One restart for several fixes. An update always moves the cluster to the newest platform image, so it brings every fix waiting at that time.
  • No postponing. You cannot postpone a security deadline or opt out of it. You can take the update sooner with Apply now.

A security update disrupts the cluster the same way as an update in your window: see What runs in the window.

Who is told ​

The platform tells people about maintenance on a cluster in the portal: when its window changes, when an update is scheduled, when it starts and finishes, and when a security update gets a deadline.

  • The tenant's owner, and the organization's Owner and Admin members who have access to the tenant, see these notices in the portal.
  • Other members are not told, whatever their role (Member, Developer or a custom role).
  • The Maintenance setting under each person's own notification settings decides whether they see the notices about the window, the schedule and the run.
  • The security update deadline is shown in the portal whatever those settings say, and it is also emailed to the organization's Owner and Admin members who have access to the tenant. The settings cannot turn it off, because it may be the only warning before an update runs outside your window. The email gives the cluster's ID, not its name, and names no tenant or organization; it links to the cluster in the portal. No other maintenance notice is emailed.

You can object to this processing, on grounds relating to your particular situation, by contacting dpo@frostmoln.se. An objection stops the email. We keep showing the deadline in the portal only if we have compelling grounds, and we explain why.

How patch updates arrive ​

You choose the Kubernetes minor version of a cluster. The patch within that minor is chosen by the platform: you never pick or pin a patch. When the platform moves a minor to a new patch, every cluster on that minor is updated to it in its own weekly maintenance window, the same way as any other platform update (a Production cluster's control plane does not wait for the window; see below).

The running version ​

The cluster shows the patch it runs:

  • the control plane's version, such as 1.35.3;
  • each node pool's version. During an update, pools can differ from the control plane and from each other, and the cluster shows them as they are.

A version can be blank on an older cluster or node pool. It fills in after the next update of that cluster or pool, and for a node pool also when it is scaled up from zero nodes. A blank version means it is not known yet, never that it is out of date.

The pending update ​

An update that is waiting for your window is listed as pending, for the control plane and for the workers separately:

  • 1.35.3 → 1.35.4: the update moves the cluster to a new patch.
  • Platform update, no version change: the update rebuilds the nodes, for example to fix a security issue in the operating system, and keeps the Kubernetes patch.
  • Update to 1.35.4: the target is known, but what the cluster runs today is not, for example because a version is blank or the node pools run different patches.
  • With no version at all, the platform has not reported the target yet. The update is still pending.

The versions above are examples. Which patches are current depends on the minor and changes over time.

Production and Standard clusters ​

On a Production cluster (three control-plane nodes), the control plane is updated one node at a time, with no Kubernetes API outage and without waiting for your window. It is therefore never listed as pending: its version simply changes. Only the workers wait for the window.

On a Standard cluster (one control-plane node), the control-plane update runs in the window, and the Kubernetes API is unavailable while it runs.

On both tiers, replacing the workers restarts every pod in the cluster: each new node starts first, and the old one is then removed without a drain. See What runs in the window.

StatefulSet maxUnavailable is not honoured ​

A patch release can change how Kubernetes behaves. On every Kubernetes version the platform offers, the maxUnavailable setting of a StatefulSet's rolling update (spec.updateStrategy.rollingUpdate.maxUnavailable) has no effect: upstream Kubernetes turned the feature behind it off by default, and the platform keeps that default.

  • A rolling update of a StatefulSet replaces one pod at a time, whatever the field says.
  • A new StatefulSet is stored without the field. An existing one keeps it, but it is ignored.

If you used it to update several pods at once, expect StatefulSet rollouts to take longer.

Apply now ​

You do not have to wait for the weekly window. Apply now opens a one-off maintenance window of 6 hours for one cluster, starting at once. Pending updates are then admitted in it as they would be in your weekly window.

  • Admitted now, not necessarily started now. The platform still starts updates in its own order, holds an update it has halted, and runs one update at a time for your tenant. A window whose update has not started by its end lapses unused. The pending updates then wait for your weekly window.
  • The full 6 hours. The window always lasts 6 hours, even when the update finishes early.
  • One open window per tenant. Only one apply-now window can be open at a time across all clusters in your tenant, so it holds the tenant's slot until it ends. Anyone allowed to use Apply now on any cluster in the tenant uses up that slot. You can ask again, also for another cluster, once it has ended. For the same cluster you can ask again sooner: once too little of the window is left for the workers to start, and no update of that cluster is running.
  • No cancel. An apply-now window cannot be withdrawn. An update that has not started when it ends does not start.
  • Standard clusters. A control-plane update can take most of the window, and worker replacement only starts with at least 4 hours 30 minutes of the window left, so the workers may follow in your next weekly window, or in a new apply-now window you ask for.
  • The same disruption as in the weekly window. On a Standard cluster the Kubernetes API is unavailable during the control-plane update, and on every cluster each pod restarts when the workers are replaced. Use it at a time when that is acceptable.

Who may use it ​

Apply now has its own permission, kubernetes:kubernetes-clusters:apply-maintenance, separate from changing the window. The request also needs kubernetes:kubernetes-clusters:create on the cluster, so a policy that grants only apply-maintenance is refused.

  • Owner and Admin hold both.
  • Member and Developer do not hold apply-maintenance.
  • A group whose access policy names both operations, or a wildcard covering them, grants them. So does a custom role holding kubernetes:*.
  • An API key or a workload identity needs an access policy that covers both operations. A group does not apply to a key.

While the window is open ​

The cluster shows the apply-now window, with its start and end. While no update of the cluster is running, it also shows why nothing has started yet:

ReasonholdWhat it means
Not in forcenot_enforcedThe platform is not running this update at the moment. It starts when the platform resumes it, if the window is still open.
HaltedhaltedThe platform has halted this update, for example while a problem with it is investigated. It does not start until the halt is lifted. A workers update also reads halted while the cluster's node pools run different Kubernetes minor versions: it starts once they run one.
Window too shortwindow_too_shortToo little of the window is left for the update to start: at least 1 hour for a single control-plane node, and 4 hours 30 minutes for the workers. It waits for your weekly window, or you can ask for a new apply-now window for this cluster.
Another update of yours is runningin_flightAn update of another cluster in your tenant is running. The platform runs one at a time per tenant, so this one waits for it to finish.
QueuedqueuedNothing stands in its way on your side. The platform starts updates in its own order and pace, and this one waits its turn.

A hold value not listed here also means the update is waiting. With the window open and no reason shown, an update is running, or nothing is pending any more.

When it is refused ​

A refused request opens no window. The API answers with one of these:

StatuscodeWhy
409not_runningThe cluster is not running, for example while it is being created or changed.
409not_enforcedThe maintenance window is not in force for this cluster, or the platform is not running the pending update at the moment.
409nothing_pendingThe cluster has no pending update. On a Production cluster, control-plane updates are never pending.
409target_haltedEvery pending update is halted by the platform (a workers update also when the node pools run different Kubernetes minor versions).
409already_requestedAn apply-now window is already open in your tenant. details.endsAt says when you can ask again: when it ends, or, for the same cluster with no update running, once too little of it is left for the workers to start, if no update of it has started by then. It does not say which cluster holds it.
403You do not hold the permissions.
404The cluster does not exist in this tenant.
503service_unavailableThe cluster's maintenance state cannot be read right now. Try again later.

Portal ​

Open the cluster. Overview shows the control-plane version and the pending updates, and the Node Pools tab shows each pool's version. Apply now appears with the pending updates when the cluster is running, the window is in force, something is pending and no apply-now window is open, or the open one is this cluster's and shows Window too short. Before you confirm, the portal says what the update means for your cluster. The button is hidden if you do not hold the permission.

fm ​

bash
# The control-plane version, the pending updates and any open apply-now window.
fm kubernetes cluster get <cluster-id>

# Each node pool's version (the VERSION column).
fm kubernetes node-pool list <cluster-id>

# Open a one-off 6-hour window for the cluster, starting now. fm asks you to confirm;
# --yes (-y) skips that, and without a terminal fm refuses unless you pass it.
fm kubernetes cluster maintenance apply <cluster-id>
fm kubernetes cluster maintenance apply <cluster-id> --yes

Terraform ​

The provider shows the running versions, read-only: control_plane_version on the frostmoln_kubernetes_cluster resource and data source, and kubernetes_version on the cluster's initial_node_pool and on frostmoln_kubernetes_node_pool. There is no apply-now action: it is a one-off request, not a state to keep, so use the portal, fm or the API.

API ​

bash
curl -X POST "https://api.frostmoln.cloud/api/v1/tenants/$TENANT_ID/kubernetes-clusters/$CLUSTER_ID/maintenance/apply" \
  -H "Authorization: Bearer $TOKEN"

The request has no body. It answers 202 with the window's startsAt and endsAt. A cluster read then returns controlPlaneVersion, each node pool's kubernetesVersion, maintenance.pending[] with targetVersion and changesVersion where known, and maintenance.applyNow with startsAt, endsAt and, while nothing runs, hold (not_enforced, halted, window_too_short, in_flight or queued). A field that is not known is left out.

What you can set ​

FieldRule
DaysOne or more of mon to sun. The day is the local day the window starts on. No repeats.
StartHH:MM, 24-hour, local to the time zone.
DurationA whole number of hours, from 6 to 12.
TimezoneAn IANA name, such as Europe/Stockholm. An empty value, Local and offsets such as UTC+2 are refused.

If you create a cluster without a window, the platform assigns one: 8 hours, starting at 22:00, 23:00, 00:00, 01:00 or 02:00 Europe/Stockholm time on one day of the week, so it normally ends by 10:00. As for any window, the day is the day the window starts on. It spreads clusters across all seven days and those start times. The cluster shows the window it got, and you can change it. A cluster always has a window; you cannot remove it.

This applies to new clusters only. An existing cluster keeps the window it has, including one the platform assigned under an earlier default.

Clock changes: the duration is elapsed hours, so a clock change does not lengthen a window. A start that a clock change skips moves to the first valid moment after it. A start that a clock change repeats uses its first instance.

Who may change it ​

Changing the window has its own permission, kubernetes:kubernetes-clusters:update-maintenance-window, because it decides when an outage happens and how long a fix waits once the window is in force.

  • Owner and Admin hold it.
  • Member and Developer do not, although they can otherwise update the cluster.
  • A group whose access policy names the operation, or a wildcard covering it, grants it. So does a custom role holding kubernetes:*.
  • An API key or a workload identity needs an access policy that covers the operation. A group does not apply to a key.

The window is readable by anyone who can read the cluster.

Do not send back what you read

The permission is checked whenever a request contains maintenanceWindow, even if the value is unchanged. The API returns the field on every read, so a script that reads a cluster, edits something else and sends the whole object back gets 403, and nothing in that request is applied, unless the caller holds the permission. Send the field only when you mean to change the window. The portal, fm and the Terraform provider already do this.

Set it ​

Portal ​

Open the cluster and go to Overview → Maintenance window → Edit. The edit button is hidden if you do not hold the permission. At create, the Maintenance window section is optional: leave it empty to get the platform's assignment.

fm ​

bash
fm kubernetes maintenance-window show <cluster-id>

# Change only what you name; the rest stays as stored.
fm kubernetes maintenance-window set <cluster-id> --days mon,wed --start 03:00
fm kubernetes maintenance-window set <cluster-id> --duration 8 --time-zone Europe/Stockholm

# At create, give all four or none.
fm kubernetes cluster create --name my-cluster --vpc vpc-123 --subnet subnet-456 \
  --node-flavor k8s.gp1.medium \
  --maintenance-days wed --maintenance-start 03:00 \
  --maintenance-duration 6 --maintenance-time-zone Europe/Stockholm

If the values you give match what is stored, fm says so and sends nothing.

Terraform ​

hcl
resource "frostmoln_kubernetes_cluster" "example" {
  # ...

  maintenance_window = {
    days           = ["wed"]
    start_time     = "03:00"
    duration_hours = 6
    time_zone      = "Europe/Stockholm"
  }
}

The attribute is optional. Leave it out and the platform's assignment does not show as a diff, and removing it later keeps the stored window. The provider sends it only when your configuration changes it, so a Member can apply other changes to a cluster whose configuration names a window. If the stored window has moved away from the configured one, every apply wants to restore it, and is refused without the permission until the configuration is edited.

If the configuration names a window and another change replaces the cluster, the new cluster is created with that window, which takes the permission. Run such a replacement as someone who holds it: otherwise the old cluster is destroyed first and the create is refused. Removing the attribute from the configuration also avoids this.

API ​

bash
curl -X PUT "https://api.frostmoln.cloud/api/v1/tenants/$TENANT_ID/kubernetes-clusters/$CLUSTER_ID" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"maintenanceWindow":{"days":["wed"],"startTime":"03:00","durationHours":6,"timeZone":"Europe/Stockholm"}}'

Leaving the field out leaves the window as it is. With the permission, null is refused with a 400.