How updating occurs in open and closed loops
Cluster management module, update resources, cluster GUI and delivery loops.
Before update
- Consider release policy: cluster update order, types of versions and support.
- Check on the version map that the transition from the current version to the target version is acceptable (if necessary, through an intermediate one).
- For minor updates, check Shturval and Kubernetes version compatibility.
- Check which client clusters can be created on this management cluster version and which can keep running: Management and client cluster version compatibility.
- If after preparation the version does not appear in the GUI or the process proceeds with errors, see Troubleshooting update.
- If some client clusters must stay unchanged while the management cluster is updated, temporarily prevent changes.
How an update starts
The Cluster management module (shturval-cluster-manager) performs the release update. The resources live in the management cluster. The names and namespaces of ClusterConfig, ClusterInfo, and ClusterUpdateChannel match the cluster name.
- ClusterConfig — the target version in
spec.releaseVersion, the strategy and the schedule reference. Progress is instatus.update. - ClusterUpdateChannel — the list of available releases. It appears in
ClusterInfo.status.update.availableUpdates. - ClusterUpdateSchedule — the update schedule and window. When the window is open, the controller writes the target version and the schedule name to
ClusterConfig.
In the GUI the update starts from the cluster dashboard. CLI commands, phases and strategies are described in Update Kubernetes.
By default, at most five clusters can be in the Updating and Paused phases at the same time. The others stay in Queued. A free slot is checked every 5 minutes.
During an update, cluster-manager updates system services to the chart versions of the target release. ShturvalServicePatch (SSP) objects are left unchanged. The resulting service parameters can change if the new chart version adds or renames fields.
Open loop
The update is available directly from the repository. After a new version is released, it appears in the GUI. Start the update through the “Clusters” → “Update” section or through the corresponding custom resources.
Closed loop
- Upload the new version bundle to each registry used in the closed loop or run
stm bundle load/stm download. More details: Working with the mirror after installation. - Wait until
cluster-managerrefreshes the version list. If the cluster registry matches the management cluster registry,cluster-managerrequests the update matrix directly. If the registries differ, check the CronJob and ConfigMapcluster-available-updatesin theshturval-cluster-managernamespace of the client cluster. With a separate registry, the next check follows the CronJob schedule and runs no later than 60 minutes after the previous one. If the version does not appear, open Update troubleshooting.
Update in GUI
The platform is released in minor and patch versions; Patch releases are released as needed. The release schedule and support policy are described in release policy. Valid transitions between version numbers are on the version map. Which client clusters can be created on this management cluster version and which can keep running is described in version compatibility.
On the management or client cluster dashboard, click Manage next to the cluster version and Kubernetes. In the update modal window, you can manually start the update or set up an automatic launch on a schedule; the process status is displayed in the update block. If it shows “No Updates”, you have the latest version available (for the current channel).
Screenshots



Manual start
If there is a target version in the list, select it and click Update.
Delayed scheduled update
Deferred update sets a schedule in which the system can automatically start an update when a suitable version becomes available. You can create several configurations for different scenarios (for example, for minor and patch versions); viewing all schedules - in the same modal window, the name of the schedule is created automatically.
To set up a schedule, in the update window, click + next to “Set up deferred update” and specify:
- Schedule in cron format (spaces between values); the schedule is interpreted in the time zone of the controller process, usually UTC;
- Update window duration (default 24 hours)—how much time can be used for updating if a suitable version is available at the time of the scheduled scan; in the GUI, the minimum value is 30 minutes (a shorter interval may not be sufficient for correct updating);
- Behavior when the window is exceeded: the parameter does not affect the initial launch of a scheduled update, but applies to an already running update; stop — update processes pause, and the window shows UpdatePaused; to resume, click Continue outside schedule; continue — the update runs until it finishes;
- whether automatic updates to minor versions are allowed. If they are, the window selects the highest available version. If they are not, it selects the highest version with the same major and minor parts as the cluster’s current version.
The schedule specifies the start of the update window, and the window duration specifies the period during which the update can be run. By default, the controller reconciles the schedule every 10 minutes. On each check it first calculates the window from the nearest previous cron run. If the current time falls within this window, the update starts on that check, without waiting for the next scheduled launch. For example, with a schedule of 0 20 * * * and a window duration of 24 hours, the update will begin immediately. With the same schedule at 18:00 UTC, if you set the window duration to 4 hours, the update will start at 20:00 UTC.
Complete the settings with the Add button. The schedule configuration can be changed at any time. If edits are made during an update already in progress, the new schedule applies from then on. A schedule can be deleted when ClusterConfig.spec.update.followSchedule no longer contains its name. While the reference exists, deletion is blocked. If this schedule paused the update, the update continues when the next window opens.
Update steps and color indication
After launch, the stages are displayed on the dashboard:
- preparing the update;
- forced removal of outdated services (this stage can be skipped if they are absent);
- updating the node configuration management module (shturval-node-config); the stage can be skipped, the update will complete without initializing the stage;
- update version of Kubernetes;
- updating versions of platform system services.
Stage status indication:
- green — the stage has been successfully completed;
- yellow — the stage is being executed;
- gray — the stage is not initialized.
The summary phase of the release update is stored in ClusterConfig.status.update.phase: Queued means waiting to start or for a free slot, Updating means the update is running, Paused means the schedule window is closed and pause on window expiry is enabled, Complete means the version of the base system services matches the target version. Details are in Release update progress.
After the cluster upgrade is complete
With the InPlace strategy, the template in InfraMachineTemplate stays unchanged. Replace the template in the node groups so that new nodes are created with the current Kubernetes version. With the RollingUpdate strategy, add a VM template of the target Kubernetes version to the provider instance: the platform uses it during the update. Step by step — VM nodes and templates. For clusters with the Shturval v2 provider, a separate template replacement is not required.
Contact support
If you have difficulties during the update process, first see Troubleshooting update. If necessary, contact the development team via service desk: the “About the system” tab of the platform’s GUI.
How to temporarily prevent changes in a client cluster
During a management cluster update, resources in client clusters may be changed. If changes to a client cluster must be temporarily prevented, add the client cluster exclusion annotation to its ClusterConfig:
metadata:
annotations:
shturval.tech/update: disable-automatic
While the annotation is set, the management cluster update does not apply changes to the client cluster and the corresponding update phase does not finish. Kubernetes, system services, and CRDs in the management cluster continue to update as usual.
The annotation applies only to client clusters. Setting it on the management cluster’s ClusterConfig does not stop the update.
The annotation prevents only the changes that the management cluster applies to a client cluster. The client cluster's own update still starts when its spec.releaseVersion changes.
Prevent changes
- Before starting the management cluster update, add the annotation to the
ClusterConfigof each client cluster that must stay unchanged. - Start the management cluster update.
- Check the update status. If the update is waiting for permission to change client clusters, the phase condition is
Falsewith reasonClientAutomaticUpdateDisabled. The message lists the client clusters that have the annotation. The next automatic check runs in one hour. - When changes to the client cluster are allowed, remove the annotation. The update resumes immediately without waiting for the next automatic check. If the message lists several client clusters, the phase finishes after the annotation is removed from all clusters that still require changes.
Add the annotation
- In the management cluster, open Administration → Custom Resources.
- Find the
cluster.shturval.techAPI group and open ClusterConfig. - Select the
ClusterConfigof the client cluster that must stay unchanged during the update and open its manifest. - Add the annotation
shturval.tech/update: disable-automatic, check the manifest, and click Save. - To allow changes, remove the annotation, check the manifest, and click Save.
In the management cluster, set the annotation for the client cluster:
kubectl annotate clusterconfig <cluster-name> -n <cluster-name> shturval.tech/update=disable-automatic
In the management cluster, remove the annotation from the client cluster:
kubectl annotate clusterconfig <cluster-name> -n <cluster-name> shturval.tech/update-
Features of the update process
Application availability during an update
Nodes are updated sequentially to reduce the impact on application availability. Actual availability depends on the number of application replicas and pod distribution rules.
Node update process
The update is rolled out to nodes sequentially according to the following algorithm:
- Cordon - the node is marked as unavailable for new pods (new pods will not be placed on this node).
- Drain - existing pods are gracefully terminated or moved to other nodes (graceful shutdown).
- Update - platform components and Kubernetes are updated on the node.
- Uncordon - the node again becomes available for hosting pods.
This process is repeated for each node in the cluster, ensuring continuous application operation.
Limitations
Rolling back to a previous version or downgrading the version is impossible. After updating, you cannot return to the previous version of the platform. Before updating it is recommended:
- Create a backup copy of the cluster (if the backup module is enabled);
- Read the release notes of the target version for breaking changes.