Upgrading midPoint on Docker and Kubernetes

Upgrading a containerized midPoint means replacing the image, running Ninja in a temporary container on the same volumes, and never running mixed versions. This page sets out the path, the 4.11 non-root change and what drives effort.

On this page

Upgrading midPoint on Docker and Kubernetes: the supported path and why it matters

A containerized midPoint upgrade is a replacement of the image, not an in-place edit: you move the stack to a newer image, run Ninja in a temporary container built from that same image with the same configuration and mounted volumes, and then start the nodes on the new version. Every node must run the same midPoint version during the change, because running nodes with different versions is not supported. You also cannot use the upgrade-distribution command in this setup, so the database schema and distribution steps are carried out through Ninja. The sequence itself is set by the release notes for each target version, which is why the exact steps should be taken from the Evolveum containerized upgrade documentation rather than reconstructed from memory.

The path is constrained by the release calendar. midPoint 4.8 (Curie) is a long-term support release supported until 17 October 2028, while midPoint 4.10 (Braille) is a feature release supported until 26 November 2027. midPoint 4.9 support ends on 18 October 2026, and midPoint 4.11 (Čapek) is planned as a feature release for 21 October 2026. A team on 4.9 or older therefore cannot simply jump to the newest image. Each hop must go through the versions that the release notes name as valid predecessors, so the upgrade plan is driven by the supported path, not by the version a team would prefer to reach. Confirm the current support dates on the midPoint releases page before scheduling work.

Before changing any image tag, confirm three things: the current version and its latest maintenance release, the Java runtime that the target release requires, and whether the 4.11 non-root image applies to your deployment. The 4.11.0 container images run as user midpoint with UID 1000, so existing volumes must be writable by that UID, for example through securityContext.fsGroup: 1000 in Kubernetes. Check this against your volumes and mounted configuration before the first rollout, since a permission failure is easy to miss until the node fails to start. Ask your team, or a partner, to write these checks into the change plan with a rollback point and a verified database backup taken before Ninja touches the schema.

What changes in a containerized midPoint upgrade

This table compares what changes for a containerized midPoint upgrade against the in-place pattern most teams know, and lists the action each change requires. Read it before you touch the image tag, because several rows change the order of operations rather than only the image.

ChangeImpact on a container deploymentAction needed
Image replacementThe running node is replaced by a container built from the target release image, so the new version only takes effect when the image is swapped.Update the image tag in your deployment manifest and roll it out only after the database schema step is complete.
Ninja in a temporary containerSchema and repository tasks run in a separate container built from the midPoint image, not on the host or inside a running node.Start a temporary container from the target image with the same configuration and the same mounted volumes, then run Ninja there.
Configuration and volumesNinja must read the same configuration and data as the running nodes, so mismatched mounts can point it at the wrong repository or files.Confirm the configuration directory and volume mounts match the running deployment before executing any Ninja command.
upgrade-distribution unavailableThe upgrade-distribution command cannot be used in containerized deployments, so the procedure in a host install does not apply.Do not follow host-based distribution upgrade steps. Replace the image instead and use the containerized upgrade procedure.
Mixed-version nodes not supportedRunning nodes with different midPoint versions at the same time is not supported, so a rolling change across nodes with mixed images is unsafe.Stop or drain all nodes on the old version, complete the upgrade step, then bring all nodes up on the new image.
Non-root user from 4.11.0Image 4.11.0 runs as user midpoint with UID 1000, so volumes written by the earlier root-based image may not be writable.Check ownership and write access on existing volumes before the first start of the 4.11.0 image.
Volume permissionsWithout write access to mounted volumes, a non-root container can fail at startup or during writes to its working directory.Set securityContext.fsGroup to 1000 in Kubernetes, or set equivalent group ownership for Docker volumes, and test on a copy first.
Target version checkImages are chosen per release, so skipping a required intermediate version or mixing Ninja and image versions creates an unsupported state.Confirm the path against the release notes and the upgrade procedure, and run Ninja from the target release image.

Why mixed-version nodes are not allowed during rollout

Running midPoint nodes with different versions against the same repository is not supported, so a rolling update that leaves old and new pods serving the same database is not a safe pattern. In a containerized deployment, the Deployment or StatefulSet that runs midPoint must move from the old image to the new one as a single cutover of the serving tier, not as a gradual replacement where some pods answer requests on 4.10 while others answer on 4.11. The default rolling strategy in Kubernetes, which keeps old replicas alive while new ones start, is therefore the wrong default for this workload. Plan the change as a planned window in which the replicas are scaled to zero or otherwise taken out of service, the schema upgrade runs, and only then are the new replicas started. Ask your platform team whether your current manifests set an explicit update strategy, and whether any other tool such as a GitOps controller could reapply the old revision during the change.

The same constraint shapes the traffic path. Your sticky HTTP load balancer, whether it is an ingress controller or an external appliance, must have no healthy backend that runs the old version once the new version is live, and it must not keep routing existing sessions to pods that were started from the old image. Confirm that the session affinity setting and the readiness probe behave as expected when all replicas are replaced at once. For scheduled work, midPoint uses Quartz for distributed task scheduling, so a node running the old version must not be allowed to claim and execute tasks against a schema that has already changed. Stop the old pods before any task can start on the new image, and check the scheduler and task state after startup rather than assuming the new nodes resumed cleanly. The exact downtime depends on your schema upgrade and data volume, so measure it in a rehearsal in a non-production copy and agree the window with the business owners in advance.

Docker Compose or Kubernetes: how the upgrade differs

On a Docker host, you run midPoint containers directly, so the upgrade is a change to the image reference followed by a container restart. The supported approach is to stop the running nodes, replace the image tag in your run or Compose definition with the target release, and start the new containers against the same volumes and configuration. Evolveum's containerized guidance does not allow the distribution upgrade command in this setup, so the schema and repository work runs through Ninja instead.

  • Image tag: Change the image tag in your definition to the exact target release, not latest, so each restart is reproducible.
  • Stopped nodes: Stop every midPoint container before replacing the image so no node runs a different version from the others.
  • Shared volumes: Keep the same configuration and data volumes mounted, since the new container reads them on startup.
  • Ninja container: Start a temporary container from the new image with the same configuration and volumes to run the upgrade steps, then remove it.
  • Permissions: For 4.11, make sure the existing volumes are writable by UID 1000, because the image runs as the non-root user midpoint.

Confirm with your own Compose or host tooling how restarts, health checks and volume ownership are handled, and whether your reverse proxy keeps sticky sessions during the restart window.

Preparing the upgrade: backups, inventory and a test environment

Most containerized midPoint upgrade problems trace back to work done before the first image is pulled. The cards below cover what to protect, what to record and what to rehearse, so the production cutover contains only the steps you have already tested.

Full backup of the repository and audit database

Take a full backup of the PostgreSQL repository database and the audit database before any schema change, and confirm you can restore it into a scratch instance. The Ninja schema upgrade alters tables in place, so a backup taken after the first upgrade step does not give you a clean rollback point. Record the backup identifier and the midPoint version it was taken from, and confirm that the backup covers both databases, since they are separate.

Containerized upgrade docs

Inventory of images, volumes and configuration

List every running midPoint container or pod, its image tag, the mounted volumes and the configuration files injected into them, including the midpoint home directory and any keystore or secret references. Note which nodes share the same database and which sit behind the sticky load balancer. This inventory tells you which volumes need permission review and which nodes must move together during the rollout.

Custom code, extensions and connectors

Record every custom artifact that the new image must still load: custom connectors, libraries added to the classpath, schema extensions, and any overlay project builds. Compare each one with the connector versions bundled in the target release. Anything not bundled with the image needs a confirmed build for the target version before the upgrade window opens.

Test environment from the same image and configuration

Build a test environment from the exact target image, with the same configuration files, secrets references and a restored copy of the production database. Running the upgrade there exposes schema, connector and configuration failures without touching live identity data. Use test accounts and non-production target systems, so that any provisioning run during testing cannot change real access.

Java version the target release recommends

Confirm the Java runtime that the target midPoint release recommends, and check that the image you plan to use bundles it. Evolveum recommends Java 25 for version 4.11 and later, with Java 21 supported, and Java 21 for 4.10 and older. If you build your own image or add a custom JDK layer, verify the version inside the running container, not only in the Dockerfile.

System requirements

Volume permissions on a copy of production data

Starting with midPoint 4.11.0, the container runs as the non-root user midpoint with UID 1000, so existing volumes must be writable by that user. Apply the permission change, for example through securityContext.fsGroup: 1000 in Kubernetes, to a copy of the production volumes first. Confirm that the container starts, writes to its home directory and reads its configuration before you apply the same change to live storage.

4.11 release notes

The container upgrade sequence, with checks and rollback points

This sequence moves a containerized midPoint from one version to the next in an order that keeps every node on the same version, protects the database and volumes before any irreversible change, and gives you a verified state at each stage. Rollback at any point depends on the backup you restored from, not on reverting the image alone.

  1. Confirm the current version and supported path

    The platform owner records the running midPoint version on every node, the target release, and the stepwise path between them, checking the midPoint releases page for support end dates and the release notes for each intermediate version. Confirm the Java version the target release recommends and that the database is on a supported configuration. Done when the team has a written path, a named target version, and a rollback owner who has access to the backup procedure.

  2. Stop midPoint nodes for the upgrade window

    Scale or stop all midPoint pods or containers so that no node runs during schema changes, since running nodes with different midPoint versions is not supported. Confirm that no tasks or provisioning runs are in progress, and that the load balancer no longer routes traffic to midPoint. Done when zero midPoint nodes are serving requests and the team has recorded the replica count so it can be restored exactly.

  3. Back up the database and volumes

    Take a consistent backup of the PostgreSQL repository and the audit database if separate, and copy the midPoint home and configuration volumes. Store the backups outside the cluster or host that will be changed, and test that the database backup can be listed and restored to a scratch instance. Done when a restore test has succeeded or the team has explicitly accepted the untested state. This is the first rollback point: nothing has been changed yet.

  4. Run Ninja from the target image in a temporary container

    Start a temporary container from the target release image, using the same configuration and the same mounted volumes as the running deployment, and run Ninja to perform the database schema upgrade and the pre-upgrade checks. The distribution upgrade command is not used in containerized deployments. Capture the Ninja output and check that it finishes without errors. Done when Ninja reports success and the container has exited. This is the irreversible point for the schema: from here, rollback means restoring the database backup taken in the previous step.

  5. Fix volume permissions for 4.11

    If the target is midPoint 4.11, the images run as the non-root user midpoint with UID 1000, so existing volumes must be writable by that user. In Kubernetes, set securityContext.fsGroup to 1000 on the pod, or change ownership of the mounted paths in a Docker deployment. Verify by listing ownership inside a test container before starting the real nodes. Done when the volumes are writable by UID 1000 and the team has confirmed this in the target environment.

  6. Replace the image on all nodes

    Update the image reference in the Deployment, StatefulSet, Compose file or equivalent on every node to the target release tag, then roll it out so that all nodes move to the same version. Do not leave any node on the old image once the first new node starts. Done when every running container reports the target image and no pod or container is still on the previous tag.

  7. Start nodes and verify the upgrade

    Restore the replica count, let the nodes start, and check the logs for startup errors and schema mismatches. Confirm the login page loads through the load balancer, that a test administrator can sign in, that scheduled tasks resume, and that a connector test succeeds against one target system. Record the version shown by each node. Done when all nodes report the same version and the agreed checks pass. If checks fail, the rollback is to restore the database backup and the previous image, with the rollback point recorded in the change record.

How Kubernetes version rules affect the midPoint upgrade

The Kubernetes cluster that hosts midPoint runs on its own upgrade cadence, and that cadence sets a limit on how quickly you can move the cluster forward. Kubernetes releases come out about three times a year on a cycle of roughly 14 weeks, and the project maintains only the three most recent minor releases. As of September 2026 those were 1.37, 1.36 and 1.35, so a cluster that falls behind will lose upstream support on a schedule you do not control. The version skew policy requires kube-apiserver to move one minor version at a time, with control plane components and kubelets following it. Kubelets may run up to three minor versions behind the API server. Confirm the current support dates on the Kubernetes releases page before you set the cluster plan, because the window shifts with each release.

Plan the cluster upgrade and the midPoint upgrade as two separate tracks with their own change records, owners and rollback points. The midPoint track is governed by midPoint's own rules: every node in the deployment must run the same midPoint version, and the Ninja schema and distribution steps run in a temporary container built from the target image, with the same configuration and volumes. Do not let a cluster upgrade land in the same window as a midPoint version change, because a rolling node update during a cluster upgrade can leave you with two midPoint versions serving traffic at once. Record which Kubernetes minor version each midPoint release was validated on, and rerun that validation before either track moves.

Recovery depends on the control plane layout and on etcd. Under the kubeadm high availability model, a stacked topology keeps etcd members on the control plane nodes, while an external etcd cluster separates them, and either way Kubernetes recommends an odd number of etcd members, with five members common in production. Confirm which topology your cluster uses and who owns the etcd backup job. Take an etcdctl snapshot save backup before any control plane upgrade, and test a restore with etcdutl in a non-production cluster so the recovery steps are known. Without a tested etcd backup, a failed cluster upgrade also puts the midPoint configuration state that lives in the cluster at risk.

What makes a containerized midPoint upgrade take longer

This table lists the factors that stretch a containerized midPoint upgrade and what moves each one up or down. Read each row against your own estimate of the current version, extensions, nodes and cluster state, then ask your team or a partner to confirm how each applies to your environment. The main takeaway is that version distance and the number of custom artifacts usually matter more than the image swap itself.

Effort driverWhat raises effortWhat lowers effort
Supported-version hopsCurrent release is several feature releases behind, so each supported step needs its own Ninja run and validationAlready on a recent supported 4.x line, with the target reachable in one documented step
Custom mappings and extensionsHeavy use of expressions, object templates, schema extensions or overlay code that must be retested after each stepStandard configuration kept in version control with an existing regression test set
Connector versions and resource referencesMany resources on connectors whose bundled versions change, or resources that reference connectors by fixed identifiersFew resources, all on connectors that stay stable across the target release
Database size and schema changesLarge repository with many audit records, longer SQL upgrade scripts and reindexing timePruned repository, verified backups and a tested restore procedure in place
Number of nodes and environmentsSeveral midPoint nodes plus development, test and production, all moved in a controlled sequence without mixed versionsSingle node or a small number of environments with identical images and configuration
Kubernetes cluster upgrade statusCluster itself is due for a control plane or kubelet upgrade at the same time, adding a second change windowCluster already on a supported version with the planned upgrade order confirmed
Volume permission changesExisting volumes created by earlier root-based images that must be made writable for the non-root user in 4.11Volumes already owned by UID 1000 or a fsGroup policy already set in the manifests

Questions teams ask before upgrading midPoint on containers

How much does a midPoint container upgrade cost?

No fixed figure applies, because the cost follows from the written scope. The main components are planning and version path review, the upgrade rehearsal in a test environment, the production cutover with its change window, and testing of connectors and custom mappings afterward. Each component is priced by the effort it needs. One-time costs cover the first upgrade and any repair of customizations. Recurring costs appear only if you retain support or upgrade services for later releases. To compare quotes, ask each provider to list the number of target versions, the environments included, the connectors in scope and whether rollback testing is part of the work. Vendor subscriptions, such as Evolveum's Product Support subscriptions, are a separate purchase and carry their own terms.

How long does a containerized midPoint upgrade take?

The duration depends on how many versions you must step through, how heavily the deployment is customized and how many environments must be upgraded before production. Midpoint's direct-upgrade rules mean an older deployment may need intermediate releases, and each hop adds a rehearsal and a test cycle. Custom connectors, mappings, object templates and schema extensions take longer to verify than a stock configuration. Ask for a timeline built from your own hop count and environment list, and confirm with the provider how each rehearsal and retest is counted. No duration is given here because none is supplied for this work.

What does the upgrade need from our team?

Your team provides access, test data and decisions that only your organization can make. Expect to supply access to the container platform, the image registry, the PostgreSQL repository and the target systems the connectors reach. Test data should resemble production, including the HR feed and a sample of accounts. Change windows must be agreed for each environment, and someone must be able to approve a rollback. Each connector needs a named owner who can confirm that the target system behaves as expected after the upgrade. Ask the provider to list these dependencies in the written scope before work starts.

Can our own staff upgrade midPoint on Docker or Kubernetes?

Yes, a capable platform team can do the upgrade with the release notes and a test environment that matches production. The official procedure replaces the image, runs Ninja in a temporary container built from the same image, configuration and mounted volumes, and then starts the nodes on the new version. Nodes must not run mixed versions, so the cutover is coordinated across all nodes. Teams that prefer to keep the work in-house should rehearse the full sequence at least once and document their rollback steps. A partner is useful when the deployment has many customizations, several hops or a tight change calendar.

What happens if a containerized midPoint upgrade fails?

A failed upgrade is recovered by restoring the database and volumes from a backup taken before the change, then starting the previous image. This is why the backup must be verified before the Ninja step runs, and why the rollback is rehearsed in the test environment. Record the image tags, the database version and the configuration state before you begin, so the previous state can be restored exactly. Because nodes cannot run mixed versions, a partial rollout must be reversed on every node. Confirm with the provider who performs the rollback, how long a restore takes in your environment and who signs off on the decision to revert.

Why does the midPoint 4.11 container image need volume changes?

Starting with midPoint 4.11.0, the container images run as the non-root user midpoint with UID 1000. Volumes created by earlier images may be owned by root, so the new process cannot write to them. Before the first start on 4.11, make the existing volumes writable for UID 1000. On Kubernetes, one common approach is setting securityContext.fsGroup: 1000 on the pod so the mounted volume is group-writable for that group. On Docker, the volume ownership must be changed to match. Test this on a copy of the production volumes, because a permission error can stop the node before any log message explains it. Review the 4.11 release notes for the complete list of changes that affect the upgrade.

Which midPoint version should we move to before upgrading containers?

The target depends on your support window and on which releases your deployment must pass through. midPoint 4.8 is a long-term support release supported until 17 October 2028, midPoint 4.10 is a feature release supported until 26 November 2027, and midPoint 4.9 support ends on 18 October 2026. midPoint 4.11 is a feature release planned for 21 October 2026. Confirm the current status on the releases page before choosing, because support dates can change. Ask the provider to map your current version to the target through the direct-upgrade path, since that map sets the number of hops.

How DeployOpen scopes and delivers a midPoint container upgrade

DeployOpen approaches a containerized midPoint upgrade as a scoped, written engagement inside your own infrastructure. We confirm the running versions, the image and volume layout, and the database state first, then plan the Ninja steps and the image change so each node moves to the target release together. The result is a tested upgrade path your team can repeat.

How we scope

  • We confirm the current midPoint version, image tags and every node that shares the same database.
  • We agree in writing which environments, clusters and namespaces the upgrade covers.
  • We record the target release, the Java runtime and any non-root image change that affects volumes.

How we build

  • We rehearse the upgrade in a non-production copy with the same image, configuration and volumes.
  • We run Ninja in a temporary container built from the target image, mounting the same volumes.
  • We test the upgraded system, including login, connector reads and a sample provisioning task, before cutover.

How we hand over

  • We deliver a runbook with stop, drain, upgrade, restart and verification steps for each node.
  • We document rollback points, backup locations and the volume permission fixes applied to the image change.
  • We walk your platform and identity teams through the procedure so they can repeat it for the next release.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers for your midPoint platform.
  • A retainer can cover planning for the next feature or LTS release as your support window approaches.
  • Support is scoped in writing, so you know which upgrade tasks are included and which need a new scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.