Deploying Element Server Suite Community on K3s: what the single-node design covers
Element Server Suite (ESS) Community is Element's packaged way to run a Matrix stack on Kubernetes, installed with Helm charts. This page covers putting that stack on a single K3s node, which suits a team that wants the full set of services on one machine and does not need a multi-node cluster for resilience or capacity. The license decides whether the design is allowed at all. ESS Community is free for non-professional deployments and evaluations, while ESS Pro is the edition for professional and government use. Confirm with Element which category your organization falls into before users join, because moving a live community between editions is a decision you want to make once, deliberately.
The 100-user design point is the planning envelope for this page. It sets the scale at which you test CPU, memory, PostgreSQL load and media storage on your own hardware. Treat it as a ceiling to verify, not a guarantee. Your real requirements depend on message volume, file sharing and whether you enable calling, so ask Element which sizing guidance matches the chart version you select, and run a load test that resembles your usage before go-live.
The trade-off is concentration. One K3s node runs the Kubernetes control plane, the workloads and their storage together, so a node failure takes down chat, database and media at the same time. Kubernetes high availability guidance calls for at least three control plane nodes, so this design gives up that resilience on purpose. Record it as a known risk and plan backups and restores for the node. This page stops at installation and exposure. The sibling topics in the deployment group cover the Docker and Debian routes, installs into an existing cluster, server naming, delegation, reverse proxies, PostgreSQL, email, Matrix Authentication Service and air-gapped networks.
Client and federation traffic reach ESS through one node, with TLS ended at ingress or your own proxy
The diagram starts with browsers on port 443 and federation peers on port 8448 arriving at the K3s node from the internet. Traffic either terminates TLS at a cert-manager-issued ingress inside the cluster or at your own reverse proxy in front of it, and is then routed to Synapse, MAS and Element Web. Synapse reads and writes PostgreSQL and media storage. Check that federation traffic reaches the Synapse federation listener, that /.well-known delegation serves the right host, and that the admin API is not exposed on the public path.
Traffic path from clients and federation peers through TLS termination to ESS components.
Choosing TLS through cert-manager or your own proxy
In this path, the cluster terminates TLS itself. cert-manager requests certificates from an issuer you configure and renews them before expiry, and the ingress layer serves them for each public hostname of the stack. You must provide public DNS records for every hostname the chart exposes, a reachable validation path for the issuer (for example HTTP-01 through the ingress or DNS-01 through your DNS provider), and an issuer you are allowed to use, whether that is a public certificate authority or an internal one that your clients trust.
- DNS and reachability: Every hostname must resolve to the node before the issuer can validate it, and port 80 or DNS API access must be open if you use HTTP-01 or DNS-01.
- Issuer choice: A public issuer needs outbound access to it from the node. An internal issuer needs its root certificate distributed to every client and to any federated server that will verify you.
- Renewal ownership: cert-manager renews automatically, but failed renewals appear only in cluster events and certificate status, so someone must watch them.
- Federation listener: If federation is enabled, port 8448 must be reachable and presented with a certificate that matches the delegated server name.
Confirm with your certificate authority team whether they accept automated issuance for these names before you commit to this path.
In this path, an proxy or load balancer your organization already operates terminates TLS, holds the certificates and forwards traffic to the cluster over an internal address. The cluster serves plain HTTP on its ingress, so the stack does not manage certificate lifecycle. This fits organizations that already have certificate automation, monitoring and change control around their proxy, and that want one place to apply TLS policy.
- Forwarded headers: The proxy must set
X-Forwarded-For,X-Forwarded-ProtoandX-Forwarded-Hostso Synapse and MAS see the real client address and scheme. Misconfigured headers break login, rate limiting and audit records. - Upload limits and timeouts: Media uploads and long sync requests need matching body size and read timeout settings on the proxy, or they fail with errors that look like application faults.
- Federation port: If federation is enabled, the proxy or a separate listener must accept traffic on port 8448 with a valid certificate, or remote servers cannot reach you.
- Path routing: Every path the stack exposes must reach the correct backend, and the admin paths should stay off the public internet.
Confirm how your proxy handles HTTP/1.1, chunked responses and websocket-style connections before you test a client against it.
Opening port 8448 is a network decision that follows from whether the server federates, and it is separate from how TLS is terminated. Synapse federates on port 8448 by default, and delegation lets user IDs keep a short domain while the server runs elsewhere. Whichever TLS path you choose, the federation listener needs a reachable address and a certificate that remote servers accept. Restricting federation is a separate decision, made through the federation domain whitelist and firewall rules, and it does not remove the need to plan the port.
- Federation enabled: Port 8448 must be reachable from the internet or from the federated servers you name, with a valid certificate.
- Federation disabled or limited: An empty allow list disables federation, and you can then close 8448 at the firewall, but confirm this with your own tests.
- Internal-only deployments: Federation can be limited to an internal set of servers, which changes both the port exposure and the certificate trust model.
- Documentation: Record the decision with the reason, because auditors and federated partners will ask for it.
Confirm the exact federation and listener settings in the Synapse configuration manual for your release before you publish DNS.
The right path depends less on technical preference than on who operates certificates and proxies today. A team with a mature proxy estate and certificate process usually gains more by using it, while a team with no shared proxy may find that cert-manager keeps renewal inside the cluster that already hosts the stack. Either path can serve the same public names, so the decision should be recorded before the chart values are written, because switching later changes ingress and DNS details.
- Existing standard: If your proxy and certificate process already cover new hostnames, reuse them.
- Isolated cluster: If the node is the only place that can reach the public names, cert-manager reduces hand-offs.
- Auditability: Ask who approves certificate changes and where renewal logs are kept in each path.
- Rollback: Keep the previous certificate and proxy configuration until the new path passes client and federation tests.
- Ownership after handover: Name the team that renews certificates, watches failures and updates forwarded header settings.
Before you choose, confirm the certificate authority, DNS provider and proxy owners in writing, and test each hostname from outside your network.
Configuration options and when each fits
This table compares the main decisions for an ESS Community install on one K3s node: TLS, federation, enabled components, PostgreSQL and media storage. Read each row for the option, the situation it suits and the cost it carries. Confirm chart value keys and defaults against the ESS chart documentation for your chart version before you build.
| Decision | Option and when it fits | Trade-off to weigh |
|---|---|---|
| TLS termination | cert-manager inside the cluster fits a host with no existing edge proxy and a team comfortable running cert-manager issuers. | You own issuer configuration, renewal monitoring and the ACME or internal CA path, all on the same node that runs the stack. |
| TLS termination | An existing reverse proxy or load balancer fits when your organization already terminates TLS centrally and has certificate tooling. | Forwarded headers, upload limits and the federation port must be passed through correctly, and the proxy becomes a dependency you must test. |
| Federation | Open federation fits a public community server that must reach other homeservers on the open network. | Any remote server can reach the federation listener, so firewalling and abuse controls become your responsibility. |
| Federation | A restricted list using federation_domain_whitelist fits an organization that talks only to known partner domains. | Every partner must be listed and reviewed, and rooms with unlisted servers will not work as expected. |
| Federation | Disabled federation, with an empty whitelist, fits an isolated internal deployment or evaluation. | Users cannot chat with people on other homeservers, which may block adoption if external contact is expected. |
| Matrix Authentication Service | Enable MAS when you need OIDC sign-in through an upstream provider such as Keycloak or Entra ID. | MAS adds its own database, domain and routes, and does not support SAML directly, so a bridge such as Dex may be needed. |
| Element Web | Hosting Element Web on the same cluster fits users who need a browser client under your own domain. | It adds one more hostname and certificate to manage, and you must confirm how it is served and updated in your chart version. |
| TURN and calling services | Enable TURN and the call services when one-to-one calls or group calls are required for users behind NAT. | These components need reachable UDP and TCP ports and extra hostnames, and they are the most common source of call failures. |
| Configure SMTP when password resets, verification and notifications are required before users self-register. | You must supply a working mail relay and sender domain, and mail settings for Synapse and MAS are configured separately. | |
| PostgreSQL | The chart-managed database fits a single-node evaluation or pilot where one team operates everything. | Backups, upgrades and tuning remain your job, and the database shares the node's CPU, memory and disk. |
| PostgreSQL | An external PostgreSQL server fits organizations with an existing database platform, backup policy and monitoring. | You must create the databases with the correct locale, manage credentials as Kubernetes Secrets and keep network paths open. |
| Media storage | A persistent volume sized for expected uploads fits a small team with predictable file sharing. | Media grows without a fixed ceiling, so volume sizing, retention and cleanup must be planned and monitored from the start. |
Setting up ESS Community on a single K3s node, step by step
This sequence takes a single K3s node from a bare host to a working Matrix stack, with Element Server Suite Community serving users, federation set deliberately, and each layer checked before the next one depends on it.
Prepare the K3s node and confirm its version
Your platform team installs K3s on a dedicated Linux host and records the Kubernetes minor version it reports. Compare that version with the minor releases the Kubernetes project currently maintains, listed on the Kubernetes releases page, and plan an upgrade path if the node runs a release close to end of life. Confirm the Kubernetes version your K3s build is based on, because the ESS Community chart documentation states which Kubernetes versions it supports. Check that kubectl reaches the API server and that the node reports Ready. The step is complete when the node is Ready and the version is inside the support window you have chosen to target.
Decide the server name and DNS records
Choose the permanent server name before anything is issued, because user IDs such as @user:example.com and room identifiers embed it and changing it later is disruptive. Decide where the Matrix server, MAS, and Element Web will live as subdomains, and create the A or AAAA records that point them at the node's public address. If you want user IDs to use the bare domain while services run on a subdomain, plan the .well-known delegation files now so they are not an afterthought. Confirm the records resolve from outside your network with a DNS lookup from a host that is not on your LAN. The step is complete when every planned hostname resolves to the expected address from the public internet.
Set up TLS through cert-manager or your proxy
Decide who terminates TLS. With cert-manager, your team installs it in the cluster and configures an issuer that matches your certificate authority or public ACME provider, then lets the ESS chart request certificates for each hostname. With an external proxy, you issue certificates on that proxy and forward traffic to the cluster, which means forwarded headers and body size limits must be configured there as well. Record which option you chose, because it changes the ingress configuration and the place where certificate renewal is monitored. The step is complete when a test certificate for one hostname is issued and its chain and expiry date are visible to your team.
Open ports 443 and 8448 where federation is needed
Open port 443 for client traffic and the web services, and port 8448 only if you intend to federate directly with other Matrix servers without delegation. Synapse uses port 8448 for federation by default, and delegation lets you serve federation on 443 instead. Your network team should apply firewall rules that allow only the ports you have chosen and block other inbound access to the node. If federation is off or restricted to a list of domains, keep the federation listener closed to the internet, as the Synapse documentation recommends. The step is complete when an external port scan shows only the intended ports open on the node's public address.
Configure PostgreSQL and persistent storage
Provision a PostgreSQL instance that meets the version requirement for your Synapse release, and create the database with the locale the Synapse documentation specifies. You can run PostgreSQL inside the cluster or on separate hardware, and the choice affects backups and recovery. Configure persistent volumes for the media store and any other component that keeps state, and confirm the storage class supports the access mode the chart expects. Confirm the database accepts connections from the cluster network with credentials stored as Kubernetes Secrets, which should be encrypted at rest and limited by RBAC. The step is complete when a test connection from inside the cluster succeeds and each persistent volume shows as Bound.
Install the ESS Community chart with chosen components
Using the official ESS Community Helm chart, your team sets values for the server name, hostnames, database connection, and only the components you have decided to run, such as Synapse, MAS, Element Web, and any calling services. Keep the enabled list short for a first deployment, since each component adds its own pods, certificates, and configuration. Follow the exact install commands in the ESS documentation and the K3s documentation rather than copying commands from other sources. Record the chart version and the values file in version control so the deployment can be reproduced. The step is complete when the helm release reports a deployed status without errors.
Verify pods, certificates and delegation
List the pods in the ESS namespace and confirm each one reaches Running and Ready, then check the logs of any pod that restarts. Confirm the certificates for each hostname show Ready, and fetch the /.well-known/matrix/server and /.well-known/matrix/client files from a public network to check that they return the expected server name and base URL, with the CORS headers browsers need. Check that the client-facing endpoint responds on port 443 with a valid certificate. The step is complete when all pods are Ready, every certificate is issued, and both well-known documents return the values you planned.
Test a login and run a federation check
Create a test account with the administrative method documented for your ESS release, then sign in from Element Web and from a mobile or desktop client. Send a message in a test room and confirm it arrives on a second client session. If federation is on, join a public room hosted on another server or use a federation tester, and confirm that your server can reach and be reached by remote servers on the ports you planned. If federation is off or limited, confirm that remote servers outside your allowed list are refused. The step is complete when the test account signs in, messages sync across sessions, and the federation result matches the policy you chose.
Security and operational controls for a single-node Matrix cluster
A single K3s node concentrates the Matrix stack, its secrets and its data in one place, so a small set of controls carries most of the risk. The cards below cover the Kubernetes layer, the Synapse admin and federation surface, and the backup and upgrade habits that decide whether a failed change can be reversed.
Encrypt Kubernetes Secrets at rest
Kubernetes Secrets are stored unencrypted in etcd by default, and on a single node that means database passwords, signing material and SMTP credentials sit in the same place as the data they protect. Configure encryption at rest for Secrets in the K3s setup and confirm it is active by reading back a test Secret from the datastore. Restrict list and watch on Secrets through RBAC so that read access to the namespace does not reveal every credential.
Apply Pod Security Standards
The ESS workloads run in one namespace, and the default posture for pods there determines how much damage a compromised container can do on the host. Label the namespace with the Pod Security Standards level your ESS chart version passes, and test that Synapse, MAS and the Element components start under that level before you enforce it. Record any exception with its reason so the next upgrade does not silently widen privileges.
Pod Security StandardsKeep the admin API off the internet
Synapse serves its admin endpoints under /_synapse/admin on the same listener as client traffic, so a reverse proxy that forwards everything exposes user lookup, room controls and media tools to the internet. Block that path at the ingress or proxy layer and allow it only from an internal address range or a bastion. Confirm the block with an external request to the path and keep the rule in the chart values so it survives redeployment.
Restrict federation and firewall the listener
Federation on port 8448 is open by default, so a new single-node server can exchange events with any domain. If your deployment serves a closed community, set federation_domain_whitelist to the domains you intend to talk to, and understand that an empty list disables federation entirely. Where federation is limited, also firewall the federation listener so that only the listed peers and your own clients can reach it, since the whitelist alone does not stop direct connections.
Back up etcd and PostgreSQL with tested restores
On one node, etcd holds the cluster state and PostgreSQL holds the Synapse and MAS data, and losing either without a copy means rebuilding by hand. Schedule etcd snapshots with etcdctl snapshot save and a PostgreSQL backup with point-in-time recovery if your tooling supports it, and store both off the node. A backup only counts after you restore it into a scratch environment and confirm that Synapse starts and users can log in.
Read upgrade notes before every change
Synapse upgrade notes warn that rolling back can be difficult because database schema changes between releases may not reverse cleanly, so the restore point is the only dependable rollback. Read the notes for every Synapse version between your current release and the target, and check the Kubernetes version skew policy before upgrading the control plane or the kubelet. Take a fresh database backup immediately before each upgrade and keep a dated record of versions deployed.
Synapse upgrade notesWhat the 100-user design point means for capacity and when to scale out
The 100-user design point is the sizing envelope this topic targets: one K3s node running the ESS Community Helm chart for a group of roughly 100 accounts. It is not a throughput guarantee. Load on a Synapse homeserver follows room activity, the number of busy rooms, federation volume with other servers, media uploads and downloads, and whether people place calls through Element Call. Two organizations with 100 users can put very different demands on the same node, so the user count alone should not settle the sizing question. Before you commit, confirm the design point against the current ESS Community documentation, because the supported envelope and the component list can change between chart releases.
No throughput figures are given here. Measure your own traffic before go-live: sample active users at peak hours, the number of rooms with heavy traffic, how many remote servers your users talk to, typical media volume, and expected call minutes. Watch CPU, memory, disk I/O and PostgreSQL connections on the node during a realistic pilot, not only during a synthetic test. Record the results so you can compare them with later measurements. If you plan to enable federation with a large public set of servers, treat that as a separate load case and test it explicitly, since federation can raise traffic well above what local users generate.
Scale out when measurements show the single process is the limit, not when user count crosses a round number. Growth beyond one Synapse process uses worker processes connected through Redis, which is covered in a separate topic, so plan the trigger now: sustained high CPU on the Synapse pod, growing request queues, or slow sync responses for users in busy rooms. Also decide early whether the node can be resized or whether you will need a second node, because the chart's single-node layout and any move to a multi-node K3s cluster affect storage, ingress and the PostgreSQL placement. Keep the pilot numbers and the trigger thresholds in your runbook.
Limits to confirm in your environment before you deploy
ESS Community is a free starting point, but several of its limits depend on your use, your Kubernetes version, your recovery needs and your network. Confirm each item below before you commit to a single-node K3s design, because changing them later usually means rebuilding parts of the stack.
Licence and feature fit
ESS Community is free for non-professional deployments and evaluations. Professional and government use points to ESS Pro, which adds the Synapse Pro, MAS, LDAP and SCIM integration and auditing features that ESS Community does not cover. Ask Element in writing whether your organization's use qualifies, and confirm which components and features your users need before you build on the Community edition. Also check the Synapse licence terms, since Synapse is AGPL-3.0-or-later.
Element Server SuiteK3s and Kubernetes version support
Confirm which Kubernetes minor version your chosen K3s release tracks and when that version reaches end of life, since the Kubernetes project maintains only the three most recent minor releases. Plan an upgrade path before the end-of-life date arrives, and check the ESS chart's supported Kubernetes range for the chart version you plan to install. A single node with an unsupported Kubernetes version becomes a security risk that is hard to fix in place.
Kubernetes releasesBundled PostgreSQL for production
Find out whether the chart's bundled PostgreSQL meets your production standard for backups, point-in-time recovery, major version upgrades, storage and resource limits. Synapse requires PostgreSQL 14 or newer for recent releases, so confirm the bundled version matches that floor. Many teams choose an external, separately managed PostgreSQL service instead, which changes who owns backups and restores.
TURN and calling services
One-to-one calls usually need a TURN server, and group calls through Element Call depend on additional services such as LiveKit and an authorization service. Confirm which calling features your users need, whether your network allows the UDP and TCP ports TURN requires, and who will operate those services. Without them, calls may fail between users behind strict firewalls or NAT, even when chat works normally.
Recovery objectives on one node
A single K3s node has no built-in failover, so one hardware or disk failure takes down chat, identity and media together. Define your recovery time and recovery point objectives, then decide how you will back up the PostgreSQL database, media storage and Kubernetes secrets, and how often you will test a restore. Confirm that a single-node outage is acceptable for your users, or plan for a multi-node cluster instead.
Outbound access and isolated networks
Check whether your environment allows the cluster to pull container images, Helm charts and packages from public registries, and whether it allows outbound federation. If the network is isolated, you will need mirrored container images and charts, an internal package source, and a decision on federation scope before installation. Confirm these with your network and security teams early, because mirroring images and charts adds recurring work at each release.
Questions teams ask before deploying ESS Community on K3s
How much effort does deploying ESS Community on K3s take, and who does the work?
The effort is mostly planning, configuration and verification, not the Helm install itself. Your team pays in staff time to decide the server name, DNS layout, certificate method, enabled components and identity source, and then to test sign-in, federation settings and backups. An outside implementation partner is paid under a written, fixed scope that covers those deliverables. Ask any partner for a quote that lists each component, what is one-time (installation, configuration, testing, handover) and what recurs (upgrades, monitoring, backup checks, support). Effort rises with the number of enabled components, the number of identity providers and any email or call requirements.
How long does the work take, and what changes the timeline?
Duration depends on scope and on how quickly your organization makes decisions, not on the chart alone. The main drivers are whether DNS and certificates are ready, how many identity sources must be connected, whether email delivery is configured before users register, and how much testing your security and compliance teams require. Ask for a schedule that ties each milestone to a deliverable and to a named owner on your side. Because no duration figure is set for this topic, treat any number you hear without a written scope as unverified.
What does the organization need to provide before the work starts?
Plan to supply four things before installation begins:
- A DNS zone you control, with records for the server name and for the services that will sit under it
- A certificate path, either cert-manager with a certificate authority you choose or your own reverse proxy with its certificates
- A single Linux node with enough CPU, memory and disk for the chosen components, reachable from the networks your users need
- A named administration owner who can approve configuration, hold the admin accounts and accept the upgrade and backup responsibilities
Confirm the exact sizing and port list against current documentation before purchase.
Can a competent internal team deploy ESS Community on K3s without a partner?
Yes, a team with working Kubernetes, DNS, TLS and PostgreSQL skills can usually do the deployment alone, provided it reads the upstream documentation for each component and tests every change. The gaps tend to appear in federation policy, identity integration, email settings and backup restore tests, which need Matrix-specific knowledge. Assess your team against those areas. If you use a partner, scope the work so that your staff learn the runbook and can perform upgrades afterward.
Is ESS Community appropriate for a regulated organization, or does ESS Pro apply?
ESS Community is free and intended for non-professional deployments and evaluations, so a regulated organization should check its licensing terms before relying on it in production. Element's ESS Pro is offered for professional and government use and includes capabilities that ESS Community does not, such as commercial Synapse Pro and LDAP and SCIM integration. Confirm with Element which edition fits your use, what support terms apply and what your auditors will expect to see, including audit logging and access control evidence. DeployOpen prepares systems and evidence for compliance assessments, but auditors and certification bodies issue any audit result.
How does running everything on a single node affect recovery and upgrades?
A single node means one point of failure. If the node, its disk or the K3s installation fails, every component stops until it is restored, so the restore procedure matters more than the install. Plan backups for PostgreSQL, media storage and the Kubernetes configuration, and rehearse a restore on separate hardware. Upgrades also touch the whole stack at once: Kubernetes version support is limited to a few recent minor releases, and Synapse upgrade notes warn that rollback can be difficult because of database schema changes. Schedule a maintenance window, take a verified backup first and test the upgrade in a staging copy.
What should we ask a partner for in a written quote?
Ask for a written scope that lists the server name and domain layout, the enabled components, the certificate method, the identity provider integration, email settings, backup and restore testing, and the handover runbook. Ask which items are one-time and which recur, what is excluded (for example, call infrastructure or federation with outside servers), and how changes to scope are priced. Ask how the partner will verify each deliverable and who signs off. Most DeployOpen engagements are fixed-scope, so the agreed scope and deliverables are the basis for the quote.
How DeployOpen scopes and delivers an ESS Community deployment
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, so a Matrix stack on a single K3s node runs in your cloud account, data center or isolated network. Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.
How we scope
- Confirm the node, operating system, public hostnames and whether TLS comes from cert-manager or your existing proxy.
- Record which ESS Community components are enabled, and which are left out, against the 100-user design point.
- Agree in writing who provisions DNS, certificates, SMTP and the identity provider before any installation starts.
How we build
- Install K3s and the ESS Community Helm chart on your node, with values files kept under version control.
- Set up TLS, port exposure and reverse proxy routing, then verify federation, client and admin paths separately.
- Run functional tests for login, messaging, calls and media uploads, and record the results against the agreed scope.
How we hand over
- Deliver the Helm values, runbook, network diagram and a record of every installed component and version.
- Document backup scope for PostgreSQL and media storage, plus the restore steps your team must rehearse.
- Walk your operators through upgrade notes and rollback limits before the engagement closes.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer, scoped separately from the build.
- Review each Synapse and chart upgrade against its release notes before it reaches production.
- Ask any partner for written confirmation of which ESS edition features and support terms apply to your deployment.

