5 min readOfficeDocs Team

Deploying Self-Hosted Collaboration on Kubernetes

Sizing, prerequisites and the difference between single-node and high-availability Kubernetes for a self-hosted collaboration suite.

Kubernetes is the default target for self-hosted software, and for good reasons: rolling upgrades, declarative configuration and a scheduler that survives a node failure. It also adds a layer between you and the application that has to be understood before an incident, not during one.

This is a generic architecture discussion for evaluating Kubernetes operations. It is not an OfficeDocs installation procedure, component inventory or tested capacity claim. For an OfficeDocs package, begin with the Quick Start and its version-specific prerequisites.

Start with a single node

The most common mistake is designing for high availability before anyone uses the system. A single-node deployment can be useful for evaluation. Whether it is acceptable in production depends on measured workload, recovery objectives and the release’s supported topology; user count alone does not establish that.

Use it to:

  • Prove the install and the upgrade path.
  • Validate identity integration against your directory.
  • Measure real resource use before sizing a cluster.
  • Test your backup and restore procedure.

Migrating from single-node to HA later is a configuration change plus a data migration, not a redesign, provided you keep the stateful components external from day one. Which is the next point.

Keep the state outside the cluster

This is the single most important architectural decision.

A collaboration suite has three kinds of state:

State Where it belongs Why not in-cluster
Relational data Managed MySQL 8, or a careful StatefulSet Backups and failover are a solved problem elsewhere
Object storage S3-compatible external service Capacity grows without bound; object lifecycle matters
Session and coordination Redis Losing it should be survivable, not catastrophic

Running MySQL inside the cluster is possible and occasionally correct, but it moves the hardest operational problem — point-in-time recovery for a stateful database — into a system that was not designed for it. If you already operate a managed database, use it. The self-hosted collaboration guide covers the backup implications.

Do keep the stateless application tier in the cluster. That is what Kubernetes is good at.

State belongs outside the cluster Application tier In the cluster: stateless, horizontally scalable, rolls without downtime Ingress and TLS In the cluster: certificate automation you trust, or a total-outage risk MySQL 8 External: point-in-time recovery is a solved problem elsewhere Redis External: losing it should degrade, not destroy Object storage External: capacity grows without bound, lifecycle policy matters
Figure 1. Everything that holds state sits outside. That single decision determines how much of the operational burden Kubernetes carries for you.

Prerequisites checklist

For the external-services architecture discussed here, check the following. Do not provision this list as an OfficeDocs package prerequisite without checking the release documentation:

  • A supported Kubernetes version with a default StorageClass if any component needs a volume.
  • An ingress controller with certificate automation you trust.
  • DNS for the access domain, decided before install. Changing the domain later touches certificates, cookies and every shared link.
  • External MySQL 8 with a user, a database and a tested backup.
  • Redis reachable from the cluster.
  • Object storage with a bucket and credentials.
  • A container registry the cluster can pull from, or an offline image bundle.

Two of these are the usual schedule killers: an undecided domain name and object storage that has never been used by anything before.

Sizing

Collaboration workloads are bursty and memory-sensitive rather than CPU-bound. The real-time coordination service holds connections open for every active editor, which makes memory the first constraint you hit.

Sizing considerations for this generic architecture:

  • Application-node example: three 4 vCPU / 8 GB nodes illustrate a separate application tier only. This is not a tested capacity recommendation or the minimum configuration for the OfficeDocs installation package, which includes a broader set of services. Follow the system requirements and Quick Start for that package.
  • Concurrent editors, not total users, drive sizing. A thousand registered users with eighty simultaneous editors is an eighty-user problem.
  • Document size matters more than document count. A single very large spreadsheet can dominate a worker.
  • Search and AI add their own footprints. An AI retrieval path reads and chunks documents, which is I/O and memory you should measure separately.
  • Object storage grows monotonically. Version history accumulates. Decide a retention policy before the bill decides it for you.

The high-availability Kubernetes guide is the first-party topology and verification reference once the measured workload justifies moving beyond a single node.

Measure before you scale. The vendor’s resource planning guide documents the baseline; your own numbers are the ones that matter.

High availability: what actually improves

Adding replicas helps for some failure modes and not others.

Improved by HA:

  • A single application pod dying.
  • A node draining during maintenance.
  • Rolling upgrades without downtime.
  • Traffic spikes absorbed by more replicas.

Not improved by HA:

  • The external database going down. This is your real single point of failure.
  • Object storage becoming unreachable.
  • A bad configuration pushed to every replica at once.
  • Certificate expiry.

It is worth being blunt about the first list: teams often build a three-node cluster and leave the database on a single instance with no failover. The cluster buys less availability than the database configuration costs.

Upgrade strategy

Rolling upgrades are the payoff for running on Kubernetes, and they need two things to be safe.

A rollback plan that has been exercised. Not a documented one. A tested one, including how to revert a schema migration if the release included one.

A staged environment. Production should not be the first place a release runs. A staging namespace with the same manifests and a recent database copy catches most surprises.

Set an upgrade cadence and publish it. Predictability reduces user friction more than low frequency does, and security patches should not wait for a window that never arrives.

What to monitor

Beyond the generic node metrics, these are the signals that predict a collaboration outage:

  • Websocket connection count against your sizing assumptions.
  • Coordination service memory, which trends up with concurrent editors.
  • Database connection pool saturation, the most common silent failure.
  • Object storage latency, which shows up as slow document open rather than an error.
  • Document save failures, which users notice before your monitoring does.
  • Certificate expiry, which is unglamorous and causes total outages.

The incident tooling in the repository’s troubleshooting documentation describes the signals the suite exposes.

A deployment order that avoids rework

  1. Decide the access domain, and do not change it later.
  2. Stand up MySQL, Redis and object storage externally, with backups verified by an actual restore.
  3. Install single-node, connect identity, run the pilot.
  4. Prove backup and restore, including object storage.
  5. Scale to HA once you have measured real load.
  6. Automate certificate renewal and alert on expiry.
  7. Write the upgrade runbook and rehearse a rollback.

If you are still deciding whether to self-host at all, start with what private cloud document collaboration is. If the driver is compliance rather than architecture, data sovereignty frames the argument.

← All articles

Next steps

Pick the step that matches your stage.

  1. See it with your use case

    A conversation about fit for your environment. No server or confidential files are needed.

    Book a demo
  2. Download and self-host

    Needs a Linux server you operate. The public trial expects Ubuntu 24.04 LTS, 16 CPU cores, 32 GB RAM and a 100 GB SSD.

    Go to downloads
  3. Read the documentation

    Installation, operations and AI configuration guides, in English, German and Japanese.

    Open the docs