Running midPoint on Kubernetes

Running midPoint on Kubernetes means planning around an external PostgreSQL repository, JVM memory limits, non-root containers, cluster node identity and staged upgrades. This page covers the decisions and checks for each.

On this page

Deploying midPoint on Kubernetes: when the platform team owns identity governance

Running midPoint on Kubernetes means a platform or identity team deploys midPoint as containers on clusters it controls, with the database, networking, storage, secrets and upgrade process owned by that team. Evolveum publishes midPoint container images that run locally on Docker or Podman and in Kubernetes on AWS, Azure or Google Cloud, so the image itself is the easy part. The harder questions are the PostgreSQL repository and audit database, which midPoint expects on a separate database server, and the cluster design around it. This path fits organizations that already run Kubernetes as a standard platform and want identity governance managed with the same tooling, change control and operations skills. It is one of several deployment paths. A virtual machine install, Docker Compose for evaluation or a Linux package install may suit teams with no Kubernetes operating model.

Ownership is the decision to settle first. Evolveum's images cover the application, but your team still decides where PostgreSQL runs, how it is backed up and restored, how midPoint nodes are scaled and how the sticky load balancer and cache invalidation between nodes are configured. Kubernetes itself also has a lifecycle your team must follow. Kubernetes releases come roughly three times a year, the project maintains the three most recent minor releases, and the version skew policy requires the API server to be upgraded one minor version at a time before the other control plane components and kubelets. Confirm which Kubernetes minor version your clusters will run and which midPoint release supports it, because midPoint's own Java and database requirements change between releases.

Before writing any manifests, ask three questions of the platform team and the identity team together: who is on call for midPoint outside office hours, which team approves changes to the midPoint container image tag, and where the repository and audit data will live for the length of their retention periods. Write those answers down as the operating model. Teams that skip this step usually discover the gap during their first upgrade, when a container rollout depends on a database migration nobody scheduled. Use the midPoint system requirements and the Kubernetes version skew policy as your reference points, and confirm any cluster-specific support statement with Evolveum and your Kubernetes distribution vendor before you commit.

How midPoint pods connect to the load balancer, PostgreSQL and each other

The diagram starts at the ingress, which sends browser and API traffic to several midPoint pods through a sticky HTTP load balancer. The pods share one PostgreSQL repository and audit database that sits outside the cluster, so the crossing into the database network is the trust boundary to review. Pods also exchange cache invalidation and task coordination traffic with each other, and they read database credentials and TLS material from Kubernetes Secrets or an external secret store. Check that session affinity works, that every pod reaches the same database, and that secret access is limited to the midPoint workload.

Traffic paths between the cluster, the midPoint pods and the external database network.

Kubernetes deployment options for midPoint and when each fits

This table compares the main choices for running midPoint on Kubernetes: the cluster distribution, where PostgreSQL runs, replica count and how secrets reach the pods. Read each row against your own platform team's capacity, and treat the operations column as the ongoing cost of each option. The main takeaway is that the database placement and secrets handling decisions usually matter more to your audit evidence than the choice of distribution.

DecisionOptionWhen it fitsWhat it adds to operations
Cluster distributionManaged Kubernetes service from a cloud providerYour team wants the control plane operated by the provider and already runs workloads on that cloudYou still own node pools, upgrades scheduled against the provider's version calendar, and the midPoint workload itself
Cluster distributionSelf-managed Kubernetes on your own servers or VMsData must stay in your data center or air-gapped network, or you need full control of cluster componentsYou own control plane high availability, etcd snapshots and restores, certificate rotation and every Kubernetes upgrade
Database placementPostgreSQL outside the cluster on a dedicated serverYou want the midPoint repository and audit data managed by your database team with its own backup and recovery processA network path and credentials must be managed from the cluster, and database upgrades run on their own schedule
Database placementPostgreSQL run inside the cluster as a workloadA non-production or evaluation environment where a single database instance is acceptablePersistent volume handling, backup jobs and failover become cluster responsibilities; confirm recovery steps before using this for production
Replica countSingle midPoint replicaLab, test or low-risk environments where a short outage during restarts is acceptableSimplest to run and upgrade, but every pod restart or node drain interrupts the service
Replica countTwo or more midPoint nodes on one repositoryProduction environments that need the service to stay available during rollouts and node failuresRequires sticky load balancing, node identification and cache and task coordination between nodes; see the multi-node cluster topic
Secrets supplyKubernetes Secret objects with encryption at rest enabledTeams that have confirmed encryption at rest is configured on their cluster and restrict Secret access with RBACSomeone must own encryption key management and periodic review of who can read Secrets
Secrets supplyExternal secret store mounted through the Secrets Store CSI DriverOrganizations that already keep credentials in a central vault and want one place for rotation and access logsAdds a driver, a provider integration and a rotation process to test; confirm the provider you choose is supported by your cluster

Setting memory limits and JAVA_OPTS without starving the JVM

The Kubernetes memory request tells the scheduler how much memory to reserve for a midPoint pod, and the memory limit is the ceiling at which the kernel may terminate the container. Both are set in the pod spec, outside midPoint itself, so they must be planned together with the JVM settings that run inside them.

  • Request: the reserved amount the scheduler uses when it places the pod on a node.
  • Limit: the hard ceiling for the whole container, covering the JVM, its threads, native libraries and any sidecar in the same pod.
  • Equal values: setting request and limit to the same figure gives the pod the Guaranteed quality of service class, which lowers eviction risk under node memory pressure.
  • Starting values: take the starting figure from the midPoint server and database sizing topic and Evolveum's reference table for your user count.
  • Version control: store the chosen values in the same Git repository as the manifests so changes are reviewed.

Before the first rollout, confirm the values against the sizing guidance for your user count and record which release and Java version they were tested with.

Setup sequence for midPoint on Kubernetes with checks at each step

This sequence takes midPoint from a version decision to a multi-node deployment on Kubernetes, with a verification point after each step so that a failure is caught while it is still small. Each stage produces a state your team can confirm before the next stage begins.

  1. Confirm the midPoint version and Java runtime

    Your team picks the midPoint release first, because the release determines the Java runtime and the container image you build or pull. Evolveum recommends Java 25 for version 4.11 and later (Java 21 supported), and Java 21 for 4.10 and older (Java 17 supported). Check the support end dates on the midPoint releases page against your planned go-live date. Done when the release, Java version and image tag are written down and approved by the platform owner.

  2. Provision PostgreSQL on a separate server

    Provision the native PostgreSQL repository on a database server outside the Kubernetes cluster, which Evolveum recommends over running it alongside midPoint. Create the midPoint database role with the privileges the install documentation specifies, and plan a separate audit database if you need one. Confirm from a utility pod in the target namespace that the database accepts connections on the expected port and that the credentials work. Done when the connection test succeeds and the database owner confirms backup coverage.

  3. Create namespace, Secrets and configuration

    Create a dedicated namespace, then load database credentials, the midPoint keystore and other sensitive values into Kubernetes Secrets, and store non-sensitive settings in ConfigMaps. Kubernetes stores Secrets unencrypted in etcd by default, so confirm that encryption at rest is enabled for your cluster and that RBAC limits who can list or watch these objects. Apply the manifests from version control so the state can be reviewed. Done when the objects exist, a sample read by a service account is denied where it should be, and the cluster administrator confirms encryption at rest.

  4. Deploy one node and confirm schema and login

    Deploy a single midPoint pod with one replica and the memory limit and JAVA_OPTS settings sized for your user count. Watch the first startup logs to confirm that the schema initializes against the PostgreSQL database and that the application reaches a running state. Then sign in to the user interface with an administrator account and check that the repository reports the expected objects. Done when the pod is ready, the schema is in place and an administrator login succeeds over the ingress or service you expose.

  5. Set node identification for each pod

    Before you scale, give each midPoint pod a unique node identity so that the nodes can tell each other apart in the cluster. Derive the node identifier from the pod name or another value that is stable per pod, and set the intra-cluster URL so that each node can reach its peers for cache invalidation. Check the logs of each pod for its own node identifier and confirm that no two pods report the same value. Done when every node reports a distinct identity and the intra-cluster URLs resolve between pods.

  6. Add replicas behind a sticky load balancer

    Scale the deployment to two or more replicas and place them behind an HTTP load balancer or ingress configured for session stickiness, since midPoint multi-node deployments depend on sticky HTTP load balancing. Confirm that the cluster health endpoints report all nodes as present and that the same administrator session stays on one node across requests. Test a rolling restart of one pod and confirm that the user interface remains available through the remaining pods. Done when all replicas are ready, sessions stay sticky and a single pod restart does not interrupt sign-in.

  7. Verify task distribution across nodes

    Confirm that scheduled tasks are distributed across nodes, because midPoint uses Quartz for distributed task scheduling on a shared database. Start a test task or a scheduled task in the administration interface, then check which node executes it and confirm that the task is not run twice. Stop one pod during a test run and confirm that another node picks up scheduling. Done when task execution is recorded on the expected node, no duplicate execution appears in the logs and failover behavior matches what your operations runbook describes.

Security controls for midPoint pods and their secrets

A midPoint pod holds administrative credentials, connector secrets and a path to the repository database, so the controls around it matter as much as the application. The cards below cover the container runtime, the cluster's secret storage, access to the API, network paths and the benchmark you review against.

Non-root image identity

The midPoint 4.11.0 container images run as the user midpoint with UID 1000. Keep that identity in the pod spec: set runAsNonRoot and an explicit runAsUser of 1000, and confirm the image you deploy matches the release you planned. If you rebuild the image, keep the non-root user and check that the home directory and midPoint home volume are writable by that UID only.

4.11 release notes

Pod Security Standards settings

Apply the Pod Security Standards at the namespace level with the restricted profile where your cluster supports it. Disallow privilege escalation, drop Linux capabilities, use a read-only root filesystem if midPoint's writable paths are mounted as volumes, and avoid host namespaces. Test the profile in warn or audit mode first so that a blocked rollout does not become an outage during an upgrade.

Pod Security Standards

Secrets are unencrypted in etcd

Kubernetes Secrets are stored unencrypted in etcd by default. The repository password, keystore material and connector credentials for midPoint therefore need protection beyond the Secret object itself. Ask whether the cluster has encryption at rest for Secrets enabled, or whether the platform team uses an external store through the Secrets Store CSI Driver, and confirm who can read etcd snapshots.

Secrets good practices

Least-privilege RBAC on Secrets

Grant only the midPoint service account read access to the specific Secrets it mounts, by name where RBAC allows. Restrict list and watch on Secrets, since these let a principal read every secret in the namespace. Limit who can create pods or exec into them, because those rights can reach the same secret values indirectly. Review bindings after each upgrade rollout.

Secret access practices

Network policies for database access

Use Kubernetes NetworkPolicy objects so that only the midPoint pods can reach the PostgreSQL repository and audit database on their ports, and so that the database does not accept traffic from other namespaces. Include the cluster-internal paths between midPoint nodes, since a multi-node deployment exchanges cache invalidation traffic. Confirm your cluster's network plugin enforces NetworkPolicy before relying on it.

CIS Benchmark review

Use the CIS Kubernetes Benchmark as the review baseline for the cluster that hosts midPoint, covering control plane, worker node and policy settings. Map each recommendation to an owner and record whether it applies to your distribution and managed service. Treat the benchmark as a checklist for your own environment, not as a certification, and ask your auditor which evidence they expect.

CIS Kubernetes Benchmark

Rolling out midPoint upgrades across nodes and release lines

Plan the midPoint version path before you touch the cluster. A midPoint upgrade has to step through supported versions, and the two release lines behave differently: 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 and midPoint 4.9 support ends 18 October 2026. Map your current version against the midPoint releases page and write down every intermediate step, the Java runtime each release needs, and the date each release leaves support. Java 25 is recommended from 4.11 onward, so an upgrade across that boundary is also a runtime change in the container image, not only an application change.

Treat the Kubernetes cluster upgrade and the midPoint application upgrade as two separate changes with separate approvals. The Kubernetes version skew policy requires kube-apiserver to be upgraded one minor version at a time, before kube-controller-manager, kube-scheduler and kubelets, and allows kubelets to be up to three minor versions older than kube-apiserver. A cluster change therefore does not require a new midPoint image, and a new image does not prove the cluster is ready. Record the cluster version, the midPoint image tag and the Java version for each stage, so a fault can be traced to one change. Confirm the exact skew rules for your target versions on the version skew policy page before scheduling.

Before rolling out replicas, check three things that a rolling update does not protect. First, schema changes run against the shared PostgreSQL repository, so take a tested database backup and confirm with Evolveum's upgrade notes whether the new release changes the schema and in what order nodes must start. Second, nodes share cluster state and Quartz task scheduling, so mixed-version nodes running at the same time should be avoided unless the release notes allow it. Third, define rollback before you start: a schema change may not reverse by redeploying the old image, so the rollback path is usually restoring the database snapshot. Ask your midPoint partner or Evolveum to confirm each of these points for your specific source and target versions.

Limits to confirm before you commit to a Kubernetes design

A midPoint cluster on Kubernetes depends on decisions made outside the pod spec: which release and Java version the image uses, how PostgreSQL is reached, which Kubernetes distribution runs underneath, which connectors your targets need and how the database is backed up. Confirm each limit below before you write manifests, because changing one later usually means rebuilding part of the design.

Release and Java version pairing

Confirm which midPoint release your image tag contains and which Java version it expects. midPoint recommends Java 25 for 4.11 and later, with Java 21 supported, and Java 21 for 4.10 and older, with Java 17 supported. Your base image, JVM flags and upgrade plan all follow from this pairing. Check the support end dates for your chosen line, since midPoint 4.9 support ends 18 October 2026.

midPoint releases

No-proxy database rule

midPoint uses PostgreSQL as its native repository, ideally on a separate database server. Confirm that the path from the midPoint pods to PostgreSQL does not pass through a connection proxy or pooler that midPoint does not support. Ask your platform team whether any ingress, service mesh sidecar or pooler sits between the pods and the database, and document the exact connection path before you agree on a topology.

System requirements

CNCF conformance of the distribution

Confirm that your Kubernetes distribution is CNCF Certified Kubernetes conformant. Conformance checks that the required Kubernetes APIs are supported, which matters for the workload, service and storage objects this design uses. A managed cloud service, a vendor distribution and a self-assembled cluster may differ in default admission rules, storage classes and node operating systems, so test the chosen platform rather than assuming parity.

CNCF conformance program

Connector support status for targets

Check every target system against the Evolveum connector catalog before you commit to a cluster design. Each connector has a support status that ranges from supported to community and experimental. A connector that is community or experimental may need additional testing, a different release line or a custom build, and that work changes the image you run and the validation you schedule. Record the status and the owner of each connector in your design notes.

Connector catalog

PostgreSQL storage and recovery

Confirm that your storage class and PostgreSQL backup approach meet the recovery time and point you need for identity data. The pods are replaceable, but the repository holds the identity state and the audit records. Ask whether the database runs inside the cluster or on managed or separate servers, how point-in-time recovery is tested, and whether a restore has been rehearsed against a midPoint schema version that matches production.

Questions teams ask before running midPoint on Kubernetes

What does running midPoint on Kubernetes cost and how is the work scoped?

Cost follows the written scope, and DeployOpen does not publish a price list, so a quote comes from the agreed deliverables. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. The main cost components are the initial design and build of the deployment, the PostgreSQL and audit database work, connector and integration work, testing and handover, and any ongoing support or upgrade retainer. Costs rise with the number of target systems, the complexity of the cluster and identity setup, and how many environments must be built. Ask for a quote that separates one-time build work from recurring items such as support, Kubernetes upgrade cooperation and midPoint upgrade work. Evolveum's own subscriptions are a separate purchase, and the support subscriptions page lists no prices, so confirm them directly with Evolveum.

How long does a first midPoint deployment on Kubernetes take?

The duration depends on the drivers that shape the work, and no fixed timeline applies to every environment. The largest factors are whether a managed or self-built cluster already exists, how mature the cluster's identity, ingress, storage and secrets setup is, and whether a PostgreSQL server with high availability and backups is ready for midPoint. Other drivers include the number of midPoint nodes, the connectors that need network access and credentials, the number of environments, and the approvals your change process requires. Sizing decisions also affect timing, because the JVM memory settings and database capacity must be agreed before the deployment is tuned. Ask for a timeline in the written scope that lists these assumptions, so each one can be checked against your environment.

What must our team provide before a midPoint Kubernetes project starts?

Your team must provide access to the environment and the parts that only your organization controls. Typically this includes:

  • Cluster access, with a namespace, service accounts and the permissions needed to create workloads, services, ingress and secrets.
  • A PostgreSQL server or database service that midPoint can reach directly, because the repository and audit database should not sit behind a proxy.
  • Identity sources and target systems, with service accounts, network paths and test data for each connector.
  • Certificates, DNS names, storage classes, backup targets and a place to keep configuration in version control.

Confirm early who owns each item, since delays usually come from access requests and approvals rather than from the build itself.

Can our own platform team run midPoint on Kubernetes without a partner?

Yes, a capable platform team can run midPoint on Kubernetes, and midPoint is open source, so there is no enterprise edition to license for the core product. The questions to answer honestly are whether the team has time and skills for Java application tuning, PostgreSQL operations, identity administration and connector maintenance, and whether it can staff on-call coverage for an identity system. Evolveum's support subscriptions are a separate decision that covers product bug resolution, with 8x5 next-business-day or 24x7 SLA options. A partner is most useful when the team needs a fixed-scope build, a documented handover or recurring support. Compare the internal effort against the written scope before deciding.

How are midPoint and Kubernetes upgrades handled without downtime?

Upgrades have two tracks: the midPoint release and the Kubernetes version. For midPoint, the supported long-term support and feature releases differ in lifecycle. midPoint 4.8 is a long-term support release supported until 17 October 2028, midPoint 4.10 is supported until 26 November 2027, and midPoint 4.9 support ends 18 October 2026. Upgrade planning must step through supported versions and check the Java requirement, since midPoint recommends Java 25 for 4.11 and later. For Kubernetes, the version skew policy requires the kube-apiserver to be upgraded one minor version at a time, before the other control plane components and kubelets. Rolling updates of midPoint pods need a sticky load balancer, shared database and tested database migration steps. Confirm each step in a non-production environment first.

Is Kubernetes required to run midPoint in production?

No. midPoint can run on Linux in a virtual machine or from Docker images, and Evolveum publishes container images that run locally on Docker or Podman as well as in Kubernetes on AWS, Azure or Google Cloud. Kubernetes adds value when your organization already runs clusters, wants standard rollout and restart behavior, and has the platform skills to operate it. It also adds operational load: you must maintain the cluster, its etcd backups, node upgrades and secrets handling, because Kubernetes stores Secrets unencrypted in etcd by default unless encryption at rest is configured. If the team does not already run Kubernetes, a virtual machine deployment may be the simpler route, and the decision should be made against your existing operating model.

Does midPoint on Kubernetes run as root, and what does that mean for security?

midPoint 4.11.0 container images run as the non-root user midpoint with UID 1000, which matches the expectation for restricted pod security settings. Your deployment should still set the pod and container security context explicitly, apply a Pod Security Standards level suited to your namespace, and avoid privilege escalation. Check that any volumes, such as the midPoint home directory, are writable by UID 1000 without granting broader rights. Store database credentials and connector secrets in a managed secret store where possible, and restrict read access to Secrets with least-privilege RBAC. Verify these settings against your own baseline and the CIS Kubernetes Benchmark, rather than assuming the image defaults meet your policy.

How DeployOpen scopes and supports midPoint on Kubernetes

DeployOpen scopes a midPoint on Kubernetes engagement as a fixed-scope project. Before any work starts, the written scope sets out which components are in play: the midPoint image and its version, the PostgreSQL repository and separate audit database, the Kubernetes objects that run midPoint nodes, the ingress and sticky session routing, the secrets that hold database and connector credentials, and the connectors to your target systems. The same document names the deliverables, such as manifests or Helm values, runbooks, backup and restore procedures, and the upgrade plan, and it states the timeline agreed with your team. Because the midPoint release line and the Kubernetes minor version both change over time, the scope also records which versions are targeted and what the upgrade path looks like after handover.

Deployment happens in your environment. DeployOpen builds into your own clusters, whether they run in your cloud accounts or in data centers you operate, so the cluster, its node pools, its etcd backups and its identity integration stay under your control after handover. Hardening and documentation are part of the delivered scope, not an add-on. That covers the non-root container setup, memory limits and JVM options, the Pod security settings, least-privilege RBAC for the midPoint service account, encryption at rest for Secrets, and documentation your security and compliance teams can review. Ask any provider to show exactly which hardening controls are included and which are left to your team.

DeployOpen does not publish prices, and a quote follows from the written scope. Ask for the quote to break out the one-time costs of design, build, testing and handover, and the recurring costs of retainers for ongoing support, upgrades and continuous testing. Ask what changes the price, including the number of clusters and environments, the number of connectors, custom expressions or connectors, and the number of midPoint upgrades in the term. Also confirm the vendor support position separately: Evolveum sells product support and platform subscriptions for midPoint, which DeployOpen does not resell or replace, and DeployOpen is not a vendor partner of Evolveum or of the Kubernetes project.

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.