Running several Open edX instances on one Kubernetes cluster

Hosting several Open edX sites on one Kubernetes cluster with the k8s_harmony Tutor plugin isolates each client or business unit, but it adds cluster-level work that a single multi-site installation avoids.

On this page

When running several Open edX instances on one Kubernetes cluster makes sense

Running several Open edX instances on one Kubernetes cluster makes sense when an organization runs learning sites for different clients or business units and wants strong separation between them without paying for a cluster per site. The pattern gives each site its own LMS, Studio, data stores and configuration while the team operates one set of cluster nodes, ingress, certificate handling and monitoring. Tutor is the official Docker-based Open edX distribution, and it supports Kubernetes deployments and plugins. The k8s_harmony plugin is the piece to evaluate for this pattern, so confirm with its current documentation which per-instance settings it manages and how it isolates namespaces, secrets and databases.

The alternative is one Open edX installation with multi-site configuration, where several sites share one codebase, one database set and one set of operators. That is usually the lighter choice when the sites share branding rules, identity provider, admin team and data policy, and when a learner account should work across sites. Separate instances fit better when a client needs its own identity provider, its own data retention or residency rules, its own plugins or XBlocks, or a clear boundary for audits and offboarding. Write down these requirements per site before choosing, because they are hard to change later.

Open edX states that the latest named release is the only supported release and that it cannot support more than one release at a time. Every instance on the cluster therefore follows the same upgrade cadence, and a site cannot stay on an older release because its client is slow to approve changes. Plan one upgrade calendar for all instances, a staging copy of each site to test plugins and XBlocks, and a rollback path per instance. Ask any partner to show how they will upgrade five sites in one window, and how a failed upgrade on one site will not block the others.

Choosing between separate instances and multi-site in one installation

Each site gets its own Tutor environment, with its own LMS and Studio hostnames, databases, settings and release timing, all deployed into one Kubernetes cluster with the k8s_harmony Tutor plugin. The cluster provides shared compute, while the sites stay separate at the application and data layers. This option fits organizations that want separate business units or clients on different configurations but want to avoid paying for a full cluster per site.

  • Isolation: Sites do not share a database, settings or Django process, so a fault or misconfiguration in one site is less likely to reach another. Isolation still depends on namespaces, network policies and RBAC that you design and test.
  • Upgrade coupling: Each instance can be upgraded on its own schedule, but every instance must move to the same supported named release at roughly the same time, because the platform supports only the latest named release.
  • Operational load: Backups, certificates, plugin versions and monitoring are repeated per site, so the work grows with each new site.
  • Cost drivers: Shared cluster capacity, storage for each site's data stores, and the engineering time to build a repeatable template for new sites.
  • When it fits: Several related sites with similar requirements, run by one platform team.

Confirm with DeployOpen or your own team how the k8s_harmony plugin is maintained for your Tutor version before you commit to this path.

How to set up several instances on one cluster

This sequence takes a Kubernetes cluster from a supported foundation to several Open edX sites that run side by side, each with its own namespace, configuration, data stores, hostnames and verified smoke tests.

  1. Confirm the cluster foundation

    The platform team checks that the Kubernetes minor release is one the project still maintains, which the release page lists as the three most recent minors. They confirm the control plane topology (stacked etcd or an external etcd cluster, with at least three control plane nodes and a TCP load balancer in front of kube-apiserver on port 6443), a tested etcd snapshot procedure, and how human users authenticate, whether through OpenID Connect, X.509 client certificates or an authenticating proxy. Done when a test etcd snapshot has been restored into a scratch environment and the authentication path has been tested with a named administrator account. Confirm the cluster's Kubernetes version and upgrade plan with your distribution vendor before you add any Open edX workload.

  2. Install Tutor and the k8s_harmony plugin

    The Open edX operator installs Tutor and the k8s_harmony plugin on a workstation or build host that has cluster credentials and a pinned Tutor version. The plugin hooks into Tutor's Kubernetes target so that each site renders its own manifests from its own configuration. Record the Tutor and plugin versions in version control so every instance can be rebuilt from the same inputs later. Done when a dry-run render of a throwaway site produces manifests without errors and the rendered output is reviewed against the cluster's admission rules.

  3. Create one namespace and configuration per instance

    For each site, the operator creates a dedicated namespace and a separate Tutor configuration with its own platform name, LMS host, secret values and storage class settings. Secrets are kept out of the configuration files in the repository and are stored in an external store or encrypted at rest, since Kubernetes stores Secrets unencrypted in etcd by default. RBAC roles are scoped so that each site's operators can only read and change their own namespace. Done when kubectl auth can-i returns the expected answers for a sample operator in each namespace and no secret value appears in a Git diff.

  4. Decide external or in-cluster data stores

    The team decides, for each site or for the whole cluster, whether MySQL, MongoDB and Redis run inside the cluster or on managed or dedicated services outside it. Ask who backs them up, how restores are tested, and what happens to every site if one shared database fails. Keep the decision written, since it determines backup scope, failover behavior and the blast radius of a bad upgrade. Done when each data store has a named owner, a backup schedule, and a restore test that has succeeded against a copy of one site's data.

  5. Configure hostnames and TLS for each site

    The operator plans DNS records for each site's LMS and Studio hosts, then configures ingress routing and TLS certificates per hostname so that no site can serve another site's traffic. Confirm that certificate issuance and renewal work for every hostname before go-live, and that forwarded headers and the platform's domain settings match the public name. Done when each hostname resolves to the cluster ingress, returns a valid certificate chain, and serves only the intended instance when requested directly.

  6. Deploy and smoke test the first instance

    The operator deploys one site, runs Tutor's initialization job, and checks the pods, jobs and persistent volumes before testing the application. Smoke tests cover the LMS login page, Studio login, creating and publishing a sample course, a learner enrollment, a file upload, and a scheduled background task. Record the results and the rendered manifest version. Done when every smoke test passes and the first site has a written runbook entry. Do not add another site until this check is complete.

  7. Add each further instance with its own tests

    The team repeats the namespace, configuration, data store, hostname and deployment steps for each additional site, then runs the same smoke test set against that site alone. Afterward, they confirm the earlier sites still pass their smoke tests, which shows that a change to a shared resource did not break a neighbor. Done when every instance has a passing smoke test record and a check across all sites shows no shared secret, database or ingress rule that crosses a namespace boundary.

  8. Document operations and upgrade order

    The team writes the operating procedure for the shared cluster: who upgrades Kubernetes, in what order (kube-apiserver first, then the other control plane components and kubelets, one minor version at a time), how each Open edX release is tested on a staging copy of each site, and how etcd backups are verified. Confirm the Open edX release that each site runs, since the project supports only the latest named release. Done when the runbook has been reviewed by the people who will operate it and a restore drill has been completed for one site.

Security controls to plan per instance and per cluster

Several Open edX sites on one cluster share an API server, an etcd store and a node pool, so one weak control can expose every client. The cards below cover the controls to design before the first instance goes live, and each one can be tested against the cluster you actually run.

Encrypt Secrets at rest

Kubernetes stores Secrets unencrypted in etcd by default, so anyone who can read an etcd snapshot can read every client's LMS secret key, database password and SSO client secret. Configure encryption at rest for the Secret resource on the API server, then confirm it works by reading a test Secret directly from etcd. Also confirm that etcd snapshots used for backup are encrypted or stored under the same access rules as the cluster.

Secrets good practices

Separate administrator access per client

Role-based access control decides whether one client's administrators can read another client's Secrets or change its Deployments. Use a namespace per instance, bind roles only inside that namespace, and avoid cluster-wide read on Secrets for anyone except platform operators. Restrict list and watch verbs as well as get, because list and watch return full Secret contents. Test the boundary by impersonating a client administrator and attempting to read a sibling namespace.

Apply Pod Security Standards

Pod Security Standards define baseline and restricted profiles that limit privileged containers, host networking and host paths. Enforce at least the baseline profile on each Open edX namespace, and aim for restricted where the Tutor-generated workloads allow it. Confirm each setting against the workloads you deploy, since a plugin image may need a relaxed profile, and record any exception with its owner and reason.

Pod Security Standards

Use separate database credentials per instance

Instances that share a MySQL or MongoDB server must not share a login. Create one database user per instance, grant it access only to its own schemas, and store each password in that instance's namespace. A leaked credential then exposes one client's data, not the whole platform. Confirm that the Redis or shared cache setup also separates keys or databases per instance, and document who rotates each password.

Authenticate users with certificates, OIDC or webhooks

Kubernetes does not store normal user accounts. It accepts X.509 client certificates, bearer tokens including OpenID Connect and JWT, webhook token authentication, or an authenticating proxy. Pick one method for platform operators and map it to the RBAC groups above, so offboarding removes access in the identity provider. Avoid long-lived static tokens for administrators and confirm how certificate revocation is handled in your setup.

Kubernetes authentication

Test against the CIS Kubernetes Benchmark

The CIS Kubernetes Benchmark is a published set of configuration checks for API server, etcd, kubelet and policy settings, and it gives a neutral reference for review. Run a benchmark scan against the cluster before client instances go live, record each failed check as accepted, fixed or not applicable, and repeat the scan after upgrades. DeployOpen can prepare these controls and collect the evidence, but an independent auditor issues any audit report or attestation.

CIS Kubernetes Benchmark

Operating several instances after go-live

The recurring work on a shared cluster falls into three groups: etcd backups, Kubernetes upgrades and Open edX release tracking. Every Open edX instance on the cluster depends on the same control plane, so etcd backups are a single cluster-wide job, taken with etcdctl snapshot save and restored with etcdutl. Kubernetes documentation recommends a backup plan for etcd data, and the restore path should be rehearsed on a separate cluster before it is needed. Confirm with your cluster distribution where the snapshot is stored, how often it runs, and who holds the restore runbook. Per-instance data such as MySQL and MongoDB contents lives outside etcd, so it needs its own backup and restore test for each site.

Kubernetes upgrades move one minor version at a time. The kube-apiserver goes first, then kube-controller-manager and kube-scheduler, and kubelets may run up to three minor versions behind the API server. The project maintains the three most recent minor releases, so plan each cluster upgrade against those dates on the release page, not against an instance's go-live date. Each upgrade touches every tenant at once, so a staging cluster that mirrors the shared add-ons and ingress setup is the place to rehearse it. Ask whether the Tutor plugin version you run supports the target Kubernetes minor release before you schedule the change.

Open edX supports only the latest named release, and it cannot support more than one release at a time. That means every instance on the cluster moves to the same named release, on the same schedule, and a per-client exception is not a supported option. Build each instance's upgrade test as part of the shared release cycle, and record which plugins and XBlocks each site depends on, since those are the items most likely to block an upgrade. Per-instance backup and restore tests scale with instance count, so a ten-site cluster needs ten restore rehearsals, not one. Budget that effort in the operating contract and agree in writing who runs each rehearsal and how often.

Limits to confirm before committing to one cluster

Sharing one Kubernetes cluster across several Open edX sites saves operating effort, but it also ties their availability, upgrades and performance together. The cards below list the limits to confirm in your own environment before you commit, so the decision rests on your release plan, your data rules and your failure tolerance.

Tutor and Kubernetes version coverage

Confirm that the k8s_harmony plugin supports the Tutor version you plan to run and the Kubernetes release your cluster uses. Both move on their own schedules, so a plugin release can lag a Tutor release or a cluster upgrade. Ask the plugin maintainers which combinations they test, and write that check into your upgrade runbook before the first site goes live.

Kubernetes releases

Noisy-neighbor resource contention

Learner-heavy sites can compete for CPU, memory, database connections and storage I/O on shared nodes. A course launch or exam window on one site can slow every other tenant if requests and limits are not set per namespace. Plan resource quotas, node pools and load tests that run several sites at peak together, not one site at a time.

Shared outage blast radius

One cluster means one control plane, one etcd cluster and one ingress layer. A failure there, or a bad change applied to shared components, can take down every Open edX site at once. Ask how the control plane is made highly available, how etcd is backed up and restored, and whether a tested recovery plan covers all tenants together.

kubeadm HA guide

CNCF conformance of your distribution

Check whether the Kubernetes distribution you choose appears as a CNCF Certified Kubernetes offering and which version it certifies. Conformance confirms that required APIs behave as expected, which the Tutor Kubernetes target depends on. A distribution that is not certified, or certified for an older release, needs extra testing before you rely on it for production tenants.

CNCF conformance program

Release and plugin compatibility per instance

Each Open edX instance may run a different named release and a different set of plugins, XBlocks or themes. Open edX supports only the latest named release, so a client that must stay on an older release cannot share the upgrade cycle of others. Map each instance's release, plugins and custom images before deciding on a shared upgrade window.

Open edX release notes

Data separation against multi-site

Multi-site inside one Open edX installation shares a database, code base and configuration, while separate instances on one cluster keep their own data stores and settings. Decide which separation your clients or business units require, including learner records, admin access and backups. If one installation with multi-site meets those needs, a shared cluster may add complexity without benefit.

Questions buyers ask about running several Open edX instances on Kubernetes

What drives the cost of running several Open edX instances on one Kubernetes cluster?

The cost is driven by how much of the work is one-time design and build and how much recurs in operations. The one-time part covers the cluster design, the Tutor and k8s_harmony plugin setup, per-instance configuration, identity and DNS planning, and verification. The recurring part covers cluster upkeep, Kubernetes patching, etcd backups, monitoring, and Open edX upgrades for each instance. Costs rise with the number of sites, the number of integrations per site, and the number of environments such as staging. Infrastructure bills for compute, storage and load balancing are paid to your cloud or data center provider, while DeployOpen's fees follow from a written scope. Ask any quote to split one-time build, recurring support and infrastructure, and to state which instances and environments are included.

Can our own team run several Open edX sites on Kubernetes without outside help?

A capable platform team can, provided it already operates Kubernetes and understands Tutor. The Kubernetes side needs skills in cluster upgrades, control plane availability, etcd backup and restore, RBAC, and secrets handling. The Open edX side needs Tutor configuration, plugin management, and an upgrade routine that matches the single supported release. Open edX states that the latest named release is the only supported release, so every instance must move along with it. Teams that lack this experience often underestimate the work of keeping several instances consistent. Ask a partner to show how they would handle your current skills gap, and decide which parts you will own after go-live.

How long does the initial build take, and what makes it longer or shorter?

The duration depends mainly on the number of instances, how different they are from each other, and how ready the cluster already is. Duration grows with the number of identity providers, custom XBlocks, themes, plugins, and data migrations per site. A reusable base configuration for similar sites shortens the work, while separate branding, separate domains and separate integrations lengthen it. The cluster's readiness matters as well: a control plane with a tested etcd backup, an existing ingress, and agreed DNS shortens the schedule. No duration is stated here. Ask for a timeline in the written scope that lists the milestones per instance and the cluster prerequisites.

What does the work need from our team?

The work needs named people from your side who own decisions and access. Typical inputs include the Kubernetes cluster and its administrators, a cloud or data center account with quotas for the planned nodes, DNS control for each site's hostnames, TLS and certificate responsibilities, identity provider details for single sign-on, and a secrets store or approved method for handling credentials. Your security team should confirm how Secrets are encrypted at rest in etcd and who can list or watch them, because Kubernetes stores Secrets unencrypted in etcd by default. Your compliance and data owners should approve how learner data is separated between instances. Confirm these inputs in the scope before work starts.

Should we run several sites in one Open edX installation with multi-site instead?

Multi-site in one installation suits sites that share a codebase, a database and an operations team, and where separate data isolation is not required. Separate instances on one cluster suit organizations that need clear boundaries per client or business unit, separate release timing, separate identity providers, or separate data handling. The trade-off is operational: multi-site means one upgrade and one failure domain, while separate instances means more deployments to coordinate but smaller blast radius per site. Decide this with your compliance owner before design starts, since data separation is often the deciding factor. Confirm with the vendor and your own environment how multi-site handles each feature you need, because feature coverage can differ by release.

How are upgrades coordinated across several Open edX instances?

Upgrades are coordinated as one release train with a per-instance checklist. Because Open edX supports only the latest named release at a time, every instance must reach the same release, so the schedule is set once and applied to each site in a fixed order, starting with staging. Each upgrade should be rehearsed against a copy of production data, with breaking changes and data migrations checked for each named release. Kubernetes has its own cadence: the project maintains the three most recent minor releases, and the kube-apiserver must be upgraded one minor version at a time before other control plane components and kubelets. Plan the cluster upgrade and the Open edX upgrade as separate windows so a failure in one does not hide the cause of the other.

How the shared cluster and per-instance parts fit together

The diagram starts at the ingress load balancer, which receives traffic for every hostname and hands it to the ingress layer inside the cluster. Each client sits in its own namespace with its own LMS, Studio, database connection, secrets and cache. The cluster administration plane, with the control plane and its etcd store, sits outside those namespaces, and the boundary between the two is the line to review: whoever can change cluster-wide objects can reach every instance. Check that each namespace's secrets, data stores and cache stay out of reach of the other namespaces.

Shared cluster layers and isolated per-instance namespaces, with the admin trust boundary.

Decision path for separate instances or multi-site

Hosting several Open edX sites on one cluster is one option among several, and it is not the same as running multi-site inside one installation. The five questions below connect the client's administration, release, scale, operations and recovery needs to the hosting model, so the choice is made on written requirements rather than on habit.

Do clients need separate administrators and data stores?

If each client needs its own Studio authors, LMS administrators, learner records and database access, separate instances give clear boundaries. Multi-site inside one installation shares one database, one admin team and one set of settings, so access rules must be enforced by the platform configuration. Ask each client who may see learner data, who may change site settings, and whether a shared database is acceptable to their compliance team.

Do clients share one release cadence?

Open edX supports only the latest named release, so every site on the cluster moves to the same release line. If one client must hold a release for testing, or must upgrade on a different date, separate instances let each site move independently. Confirm which upgrade dates each client will accept before deciding whether a shared schedule is workable.

Open edX release notes

How many instances are planned?

A few sites can be run with one set of Tutor configurations and manifests, while a large number multiplies the work of each upgrade, backup check and certificate renewal. Count the instances expected in the first year and in the third year, then estimate how many configuration sets your team will maintain. Ask any partner to show how adding an instance is handled, and what is repeated for each one.

Does the team already run Kubernetes in production?

Running several instances on one cluster adds shared failure domains: one control plane, one etcd cluster and one ingress layer serve every client. Teams without production Kubernetes experience usually need to build control plane, storage and monitoring skills before this model is safe. Check whether your engineers can handle node upgrades, etcd backups and certificate rotation without outside help.

Version skew policy

What recovery and upgrade windows does each client accept?

A cluster incident or a failed cluster upgrade can affect every client at once, so each client's recovery time and maintenance window must be compared before sharing infrastructure. Write down the outage each client will tolerate, the restore point they expect and the windows they accept for upgrades. If one client needs a stricter window than the others, separate instances or a separate cluster may be the better fit.

How DeployOpen scopes and delivers a multi-instance Open edX cluster

DeployOpen starts this work with a written, fixed scope agreed before any cluster is built. The scope names every Open edX instance, its hostnames, its owner and its data boundaries, and it states which Kubernetes distribution and Tutor version the work targets. Because the Kubernetes project supports only its three most recent minor releases and Open edX supports only its latest named release, the scope also records the upgrade cadence the client will follow. Each instance gets a defined set of deliverables, so the client can see what is built, what is shared across instances and what remains the client's own responsibility. Quotes follow from this written scope rather than from a generic template.

Planning comes next, and it covers the shared platform before any instance is deployed. DeployOpen plans the cluster topology, including whether the control plane runs as a stacked or external etcd design as described in the kubeadm high availability guide, how etcd snapshots are taken with etcdctl snapshot save, and how identity is wired in, including the OpenID Connect or other authentication method the Kubernetes API uses. Secrets handling is planned alongside this: encryption at rest for Secrets, least-privilege RBAC and a decision on whether an external store is used. Each Open edX instance then gets its own namespace-level configuration, database and object storage boundaries, backup schedule and restore test, so one client's data and credentials never depend on another's.

Implementation happens in the client's own cloud accounts, data centers or air-gapped networks, and the client keeps ownership of the infrastructure, the Git repositories holding configuration and the credentials. DeployOpen delivers the cluster build, the per-instance configuration, verification of backups and restores, and operating documentation that a platform team can follow without the original engineers. Operating documentation covers how to add an instance, rotate secrets and perform a Kubernetes or Tutor upgrade. Ongoing work, such as version upgrades, patching and continuous security testing, can be covered by an optional retainer that is quoted separately from the build. Before signing, the client should confirm who holds administrative access after handover and who is on call for each instance.

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.