Deploying XWiki on Kubernetes with the Helm chart

The xwiki-contrib Helm chart runs XWiki on a cluster you control, but database, storage, cluster mode and Solr choices decide whether it stays stable. This page explains each choice and what to confirm before deployment.

On this page

When a Helm-managed XWiki on Kubernetes fits your platform

If your platform team already runs Kubernetes and wants XWiki managed the same way as its other services, a Helm-managed deployment is the natural fit. The xwiki-contrib Helm chart packages the XWiki pods, a bundled or external database, persistent storage for attachments and wiki data, an ingress for user access, and an optional separate Solr deployment for search. Each of these is a Kubernetes object you already know how to review, version and roll back, which is the main reason to choose this path over a single host. The chart is community-maintained, not an official XWiki SAS product, so you must confirm its values, supported Kubernetes versions and the XWiki image version it deploys against its own documentation before you commit to a release.

A cluster adds real operating overhead, so it is worth it only when the cluster already carries that load. If your team has no Kubernetes on-call, no GitOps pipeline and no storage class you trust for stateful workloads, a single Docker host running the official images will be easier to operate and recover. The image baseline the chart builds on is the same as for Docker: the stable line at 18.8.0, the LTS line at 17.10.14 and the intermediate LTS line at 18.4.7, each published in MySQL, PostgreSQL and MariaDB variants running on Tomcat for amd64 and arm64v8. Pick the line and database variant before you read chart values, because the chart's defaults may not match your choice.

Ask the chart maintainers and your own platform team a few questions before you start: which image tag the chart pins by default, whether it supports the database you plan to use, how it handles the XWiki configuration files and secrets, and how upgrades are expected to run across pods that share state. Confirm that the Kubernetes version in your clusters is one the chart and the Kubernetes project still support. Kubernetes supports its three most recent minor releases, so a cluster that falls behind will leave you with a platform that no longer receives fixes.

Which Helm chart options fit which setup

This table compares the main xwiki-contrib Helm chart choices: database, storage, ingress, cluster mode and Solr. Read each row for when the option fits, what it leaves your team to operate, and what to confirm in the values file for the chart version you pin.

DecisionWhen it fitsWhat you ownWhat to confirm in the chart values
Bundled versus external databaseBundled suits a short-lived test or proof of concept. An external database fits production, especially where a managed or shared database service already has backups and monitoring.Bundled: database backups, restores, upgrades and capacity. External: connection setup, credentials and the database team's backup and recovery process.Confirm whether the chart can deploy its own database, how it is enabled, and how external connection details and credentials are supplied for your chart version.
Persistent volume sizing and storage classPersistent storage is needed for attachments and data that must survive pod restarts. Choose a storage class that your cluster operators support for backups and snapshots.Volume growth, expansion procedures, snapshot schedules and restore testing for attachments and any bundled database data.Confirm the persistence settings, the storage class key, the requested size and whether existing volumes can be expanded under your storage driver.
Ingress and TLS terminationIngress fits when your cluster already runs an ingress controller and certificate manager that your security team accepts. Terminate TLS at a load balancer if your network policy requires it.Certificate issuance and renewal, ingress controller upgrades, and the context path and forwarded header settings XWiki needs behind a proxy.Confirm the ingress enablement key, host and TLS secret fields, and whether the chart sets the external URL and forwarded headers for your chart version.
Single replica versus cluster modeA single replica fits small wikis, pilots and teams that accept brief downtime during restarts or upgrades. Cluster mode fits high availability needs and requires JGroups discovery and sticky sessions.Cluster mode: JGroups discovery in your network, session affinity at the ingress, cache behavior under load, and testing of failover. Single replica: a restart window for every change.Confirm the replica count key, whether the chart configures JGroups discovery, and the session affinity annotations your ingress controller needs.
Embedded versus separate SolrEmbedded Solr fits single-instance wikis with modest content. A separate Solr deployment fits clusters and large wikis, where the search index should not be tied to one XWiki pod.Separate Solr: its own deployment, storage, upgrades, monitoring, and reindexing after changes. Embedded: fewer components but a search index bound to the XWiki pod.Confirm whether the chart can enable a separate Solr deployment, the key that sets the Solr URL, and the reindex steps for the chart version you deploy.
Image variant and XWiki lineThe image variant must match the database you chose. The XWiki line should match your upgrade policy, such as the stable or LTS line.Image pinning, testing of each upgrade, and checking the Java and database compatibility of the chosen line.Confirm the image repository, tag and database variant keys, and the tags the chart version was tested with.

How the XWiki chart components connect inside your cluster

The request starts at users on the public side of the ingress controller, which terminates TLS and forwards traffic to a Service that keeps each session on one XWiki pod through session affinity. The pods share one database, either a bundled instance or an external server you run, and read and write attachments and files on persistent volumes. Pods also exchange cluster coordination traffic with each other, and search can be served by a separate Solr deployment. Check which database and Solr options you chose, since each is optional or external depending on your values, and confirm that each boundary has the network policy you intend.

Request, data and cluster coordination paths, with optional components marked.

Choosing the XWiki Kubernetes database path by team situation

Choose this path when your organization already operates a managed or shared PostgreSQL, MySQL or MariaDB service with its own backup, patching and on-call routines. In this case the XWiki chart should point at an external database, and the database team keeps ownership of the engine while the platform team owns the XWiki schema connection, credentials and application-side behavior.

  • Backups stay with the database team: Confirm the service already takes backups of the XWiki database and that the schedule and retention meet your policy, rather than assuming the chart covers it.
  • Credentials move into Kubernetes Secrets: Store the database user and password in a Secret and reference it from the chart values, so the password never appears in a values file committed to Git.
  • Network path and TLS: Check that pods in the cluster can reach the database endpoint and that the connection uses the TLS settings your database team requires.
  • Upgrades follow the database calendar: Ask who approves major engine upgrades and whether XWiki's supported database versions match the version you plan to run.

Ask the platform team who restores the database if an XWiki upgrade goes wrong, how long a restore takes, and whether a restore to a point in time is tested.

Why cluster mode needs JGroups and sticky sessions

Running several XWiki replicas changes the design in two ways. First, the nodes must find each other and share cache invalidation, which XWiki handles through JGroups. When one node updates a page or a setting, the other nodes need to drop their cached copies, or users will see stale content. Second, a user's HTTP session lives in the memory of the pod that created it. Unless the ingress routes that user back to the same pod, a request that lands on another replica can appear to log the user out or fail. Plan for sticky routing at the ingress as the default, and treat any deployment without it as a deliberate exception that needs its own testing.

A single replica is simpler to upgrade, observe and debug. Logs come from one place, there is no cache to reason about between nodes, and a rollout is a single restart with a short outage. Several replicas buy availability and capacity, but they add three things you must own: pod discovery that works on your cluster network (confirm which JGroups discovery method the chart configures for your version, and whether it depends on DNS, the Kubernetes API or a headless service), a shared search index so every node reads the same results (see the separate Solr option), and a rollout plan that accounts for sessions, for example by draining traffic before a pod is replaced. Confirm the ingress affinity settings your chart version expects, including cookie name and expiry, before you rely on them.

How to deploy XWiki with the Helm chart, step by step

This sequence takes a cluster from a version check to a working single-replica XWiki with a verified database, persistent attachments and admin access, and only then adds cluster mode and a separate Solr server.

  1. Confirm the cluster meets the support policy

    Check the Kubernetes version of the target cluster against the project's support policy before you install anything. The project maintains the three most recent minor releases, and as of September 2026 those were 1.37, 1.36 and 1.35. Confirm the current list on the Kubernetes releases page, since it changes with each release. Run kubectl version and confirm the server version is in the supported list and that your distribution is conformant. Done when the server version is on the supported list and the cluster has a default storage class and a working ingress controller that you can name.

  2. Pick and pin an XWiki image line

    Choose the stable, intermediate LTS or LTS line based on your need for support lifetime and upgrade cadence, then pin the exact image tag in your values file. At the time of research the official Docker image tags were 18.8.0 for stable, 17.10.14 for LTS and 18.4.7 for the intermediate LTS, but confirm current tags before you pin. Record the reason for the choice in your change record, including the database variant you plan to use. Done when the chart values contain one explicit tag, not latest, and the decision record names the line and the owner who will approve upgrades.

  3. Create or connect the database

    Decide whether the chart runs a bundled database for a test environment or connects to an external MySQL, MariaDB or PostgreSQL service for production. For an external database, a platform or database team creates a dedicated database and user with rights limited to that schema, and records the host, port and database name. Confirm from a pod in the target namespace that the database port is reachable through network policy. Done when a test connection from inside the cluster succeeds and the credentials are ready to be stored as a secret in the next step.

  4. Create secrets outside Git

    Create the database password, admin password and any other sensitive values as Kubernetes Secrets, using your secret manager or a sealed or external secret workflow. Keep only secret names, not values, in the Helm values committed to Git. Kubernetes stores Secrets unencrypted in etcd by default, so confirm that encryption at rest is configured for the cluster and that RBAC limits who can read secrets in the XWiki namespace. Done when kubectl get secret shows the expected names, the values are absent from the repository, and the chart values reference the secrets by name.

  5. Provision persistent storage and a storage class

    Create a PersistentVolumeClaim, or let the chart create one, for XWiki's data directory where attachments are stored, and bind it to a storage class that your platform team has confirmed is backed up. Check the volume access mode, size and reclaim policy, because a deleted claim with a delete policy removes attachments. Confirm the storage class supports the access mode your replica plan needs. Done when the claim shows Bound, the storage class and reclaim policy are written in the values file, and the backup job for that volume is named in the change record.

  6. Set ingress and TLS

    Configure the ingress host name, the ingress class and a TLS secret issued by your certificate authority or cert-manager. Set the public URL in the chart values so XWiki generates correct links and redirects. Check that the context path matches the one you plan to publish, and that the ingress controller passes forwarded headers to the application. Done when the host resolves inside your network, the certificate chain validates from a client, and the public URL in the values matches the address users type.

  7. Install the chart with pinned values and verify the single replica

    Install the xwiki-contrib Helm chart with a pinned chart version and your values file, using one replica, and wait for the rollout to finish. Run kubectl get pods to confirm the pod is Ready, then read the pod logs to confirm XWiki started and connected to the database without errors. Next, create a test page with an attachment, delete the pod so it is recreated, and confirm the attachment and page still open. Then log in as the admin using the secret-backed password and confirm the administration pages load. Done when the pod restarts cleanly, the attachment persists and the admin login works.

  8. Enable cluster mode and a remote Solr only after the baseline passes

    Only after the single-replica baseline passes, increase the replica count and enable cluster mode with JGroups and sticky sessions at the ingress, following the chart options for your release. Deploy the separate Solr server only when your wiki size or clustering needs call for it, and follow the Solr page for reindexing. Test each change by repeating the restart and attachment checks, and confirm sessions stay on one pod and that cluster members see the same content. Done when all replicas are Ready, a page edited on one pod is visible on another, and the baseline checks pass again.

Security controls to plan before the first Kubernetes deploy

XWiki on Kubernetes inherits the security posture of the cluster beneath it. The controls below cover how secrets, access, workloads, identity, etcd and credentials are handled, and each one should be decided before the first deploy rather than after the wiki holds real content.

Encrypt and externalize Secrets

Kubernetes stores Secrets unencrypted in etcd by default, which includes the XWiki database credentials and admin passwords if they are created as Secrets. Plan encryption at rest for etcd and decide whether an external store will hold these values through the Secrets Store CSI Driver. Check who can read Secrets in the XWiki namespace and whether backups of etcd contain them.

Secrets good practices

Restrict list and watch access

List and watch verbs on Secrets and pods can expose values and workload details even when get is restricted. Grant the XWiki service accounts and the people who deploy the Helm chart only the roles they need, scoped to the XWiki namespace. Review cluster-admin bindings before the first deploy and again after any change to the chart's RBAC templates.

Secrets good practices

Apply Pod Security Standards to the namespace

Set the Pod Security Standards level on the XWiki namespace so that the XWiki and database pods run without privilege escalation, host networking or host paths. Confirm that the chart's security context settings satisfy the level you choose, and test a deploy in a non-production namespace first. Record the level in your baseline so auditors can see it.

Pod Security Standards

Authenticate cluster users with OIDC

Kubernetes does not manage user accounts itself, so human access depends on X.509 certificates, bearer tokens, webhook authentication or an authenticating proxy. Connect cluster sign-in to your existing identity provider using OpenID Connect or another supported method, and remove shared kubeconfig credentials. Note that this governs administrator access to the cluster, separate from XWiki's own user login.

Kubernetes authentication

Back up etcd and rehearse restores

The etcd datastore holds the cluster state that the XWiki deployment depends on, so a backup is only useful if a restore has been tested. Schedule snapshots with etcdctl snapshot save, store them outside the cluster with access controls, and document the restore procedure with etcdutl. Confirm that the snapshot schedule covers the stored Secrets and that your restore test includes them.

Operating etcd clusters

Align the cluster with CIS Benchmark

Map the cluster's configuration against the CIS Kubernetes Benchmark to find settings that weaken the control plane, nodes or workloads. Treat the benchmark as a checklist to run with a scanner, then record which recommendations you accept, change or defer and why. Include the XWiki namespace and the ingress controller in the scan so the findings cover the path users actually take.

CIS Kubernetes Benchmark

What XWiki on Kubernetes costs and needs from your team

What drives the cost of deploying XWiki on Kubernetes?

The cost is driven by how much of the platform around XWiki already exists and how much has to be designed. The main components are cluster readiness, database ownership, persistent storage, ingress and TLS, cluster mode with JGroups and sticky sessions, a separate Solr deployment, and testing and upgrades. A team with a hardened cluster, a managed database service and an existing certificate process has far less to build than a team starting from bare nodes. Ask the provider to price each component separately so you can see which ones you already own. One-time work covers the initial build and verification. Recurring work covers upgrades, patching and restore testing, which often costs more over the life of the wiki than the first deployment.

Can our team deploy XWiki on Kubernetes without a partner?

Yes, a team with Kubernetes, database and ingress experience can deploy XWiki with the xwiki-contrib Helm chart on its own. The harder parts are not the first install but the decisions around it: choosing an external or bundled database, planning persistent storage, enabling cluster mode with sticky sessions, moving search to a separate Solr server and proving that backups restore. Check whether your team has someone who has operated stateful workloads on Kubernetes and someone who owns the database. If either role is thin, a fixed-scope engagement can cover the build and hand over runbooks, while your team keeps the operational knowledge. DeployOpen plans, implements, documents and supports self-hosted platforms in your own infrastructure, so the choice is about where the skills sit, not whether the platform can run there.

What does the work need from our team before it starts?

Plan for access and decisions from several owners before any engineering begins. The main requirements are:

  • Cluster access: a namespace or cluster role with rights to create workloads, services, ingress objects, persistent volume claims and secrets, plus a named platform owner who can approve changes.
  • A database owner: someone who can provision or approve a MySQL, MariaDB or PostgreSQL instance, set backup retention and grant the XWiki database user its rights.
  • A DNS and certificate process: a hostname, the ingress controller in use and a way to issue and renew TLS certificates.
  • A backup owner: someone accountable for database and attachment backups and for a tested restore.
  • A change window: a period in which the first production rollout and any database or search changes can be made and rolled back.
How long does a Kubernetes deployment of XWiki take?

Duration depends on the scope you agree, and no fixed figure applies to every environment. A narrow scope, such as a single cluster with an existing external database and ingress, is much shorter than a scope that adds cluster mode, a separate Solr server, a database build, identity integration and an upgrade runbook. Approval cycles for access, DNS, certificates and change windows often take longer than the engineering. The schedule should be written from the agreed scope, with dependencies on your teams listed as separate milestones. Ask for the schedule to show which steps wait on your side so that delays are visible early.

What should we ask for in a written quote for this work?

Ask for a quote that lists each deliverable and what is excluded. Useful items to request include:

  • The chosen chart version, XWiki image tag and database variant, with the reason for each.
  • Whether the database is bundled or external, and who operates it after handover.
  • The persistent storage class, backup method and a documented restore test.
  • Ingress, TLS and DNS responsibilities, and the controller assumed.
  • Whether cluster mode, JGroups and sticky sessions, and a separate Solr server are included, and how reindexing is handled.
  • Testing scope, the upgrade procedure and what support follows handover.

DeployOpen scopes and quotes engagements in writing before work starts. For comparison, XWiki SAS publishes consulting and training day rates and support tiers on its pricing page, with support plans required before consulting, so ask any vendor to state whether its figures include the same deliverables.

How do the XWiki SAS day rates and support tiers compare with a fixed-scope quote?

XWiki SAS lists consulting at 1200 EUR per day, which requires a Business or Enterprise support plan, and training at 1500 EUR per day, according to its pricing page. Its support tiers are Starter, Basic, Business and Enterprise, scaled by user count. These are a day-rate and subscription model, so the total depends on how many days the work takes and which tier you hold. A fixed-scope quote is priced on agreed deliverables instead. To compare fairly, convert both into the same list of tasks: cluster build, database setup, storage, ingress, cluster mode, Solr, testing, upgrade and handover. Then ask each provider how many days it expects each task to take and what it leaves for your team to own.

What breaks most often after an XWiki Kubernetes install, and what should we check?

Most post-install problems come from state and routing rather than the first pod starting. Check that the database connection survives pod restarts and that credentials come from Kubernetes Secrets, since Secrets are stored unencrypted in etcd by default unless encryption at rest is configured. Verify that sticky sessions are set when cluster mode runs more than one replica, because users otherwise lose sessions across pods. Confirm that search reindexes correctly after moving to a separate Solr server, and that attachments are stored on persistent volumes with a tested restore. Finally, confirm that the chart version and XWiki image tag are both recorded, so an upgrade does not change them by accident. Ask your provider which of these checks are in the agreed scope and what evidence they will hand over.

Limits to confirm in your environment before you commit

The Helm chart, the XWiki image lines and your cluster each set limits that are easy to assume and costly to discover later. The cards below list the checks to complete during scoping, before a deployment design or quote is fixed.

Chart version and image tags

Confirm which release of the xwiki-contrib chart you will pin, and which XWiki image tags that release supports. The chart and the image tags move on separate schedules, so a chart release may not support the newest stable, intermediate LTS or LTS tag. Ask for the tested tag list in writing and record the chart version in the scope document so upgrades start from a known pair.

Docker image docs

Kubernetes versions the chart is tested against

The chart's test matrix may cover fewer Kubernetes minor versions than your cluster runs. Compare the chart's stated compatibility with the Kubernetes versions your platform team supports, and check the support window of each. Kubernetes maintains only the three most recent minor releases, so a cluster on an older minor can fall outside both the chart and the upstream patch window.

Database and Solr combinations

Confirm that the chart accepts the combination you intend: an external MySQL, MariaDB or PostgreSQL instance together with an external Solr server. Some options may be exposed as separate values sections that are not tested together. Ask the chart maintainers or read the values file for your chart version, then test the combined install in a non-production namespace before sizing storage and backups.

Image variant docs

JGroups discovery on your network

Cluster mode depends on JGroups members finding each other across pods. Check which discovery method the chart configures, such as Kubernetes DNS-based discovery or another protocol, and whether your CNI, network policies and service mesh allow the required ports between pods. Test pod-to-pod traffic with the policies you plan to enforce, because a blocked discovery path often shows up as split sessions rather than a clear failure.

Upgrades across XWiki lines

Confirm how the chart handles moving between the stable, intermediate LTS and LTS lines, and whether it changes the bundled Java or Tomcat version along the way. A line change can alter the required JDK and servlet container, which affects the image, any custom configuration and extension compatibility. Ask for the documented upgrade path and a rollback plan before the first production install.

CNCF conformance of your distribution

If you run a managed or packaged Kubernetes distribution, check whether it appears in the CNCF Certified Kubernetes conformance list. The program states that there are over 90 certified offerings, and conformance means the distribution supports the required APIs. It does not test the chart or XWiki, so treat it as one input and still validate the Helm install, ingress and storage classes on your distribution.

Certified offerings
90+
CNCF conformance program

How DeployOpen works on this

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For an XWiki Kubernetes deployment, we start from a written scope that names the cluster, database, storage, ingress and search choices, then build and hand over the system so your own team can run it.

How we scope

  • Confirm the target clusters, Kubernetes versions and whether the platform runs in your cloud, data center or air-gapped network.
  • Record the database choice, bundled or external, and who owns backups and restores for it.
  • Agree in writing on ingress, certificates, SSO, storage classes and whether cluster mode with a separate Solr server is in scope.

How we build

  • Install the xwiki-contrib Helm chart with values files kept in version control so every change is reviewable.
  • Configure persistent volumes, sticky sessions and JGroups cluster settings, then test pod restarts and failover behavior.
  • Wire secrets through your chosen store and check Secrets encryption at rest and RBAC access before go-live.

How we hand over

  • Deliver the configuration, runbooks for upgrades, backups and restores, and a record of the tests that were run.
  • Document the decisions made during scoping, including trade-offs on database and search, so reviewers can trace them.
  • Walk your platform and security teams through operations, alerting and the evidence they will need for internal reviews.

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades across XWiki and chart versions, and continuous testing are available as a retainer.
  • Ask for a quote built from the written scope, which will list each deliverable and the environments it covers.

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.