Moving Open edX from Tutor local to Kubernetes: what the work involves
A team running Open edX on one server with Tutor usually moves to Kubernetes to gain scale, resilience or a hosting standard their infrastructure group already enforces. The move reuses the same Docker images the single server runs, but it changes where data, uploads and traffic live, so the effort depends on three things: how the database and object storage are separated from the cluster, how DNS and the load balancer are repointed, and how well the cutover is rehearsed. Tutor's Kubernetes target, documented in the Tutor Kubernetes guide, deploys the same images, asks for at least 4 GB of RAM on each node, and creates a Caddy LoadBalancer service that generates TLS certificates for the public hostnames.
Because the images stay the same, the risky work is not the container build. It is the state. On the single server, MySQL, MongoDB, Redis and uploaded files sit next to the application on local disks. On Kubernetes, pods do not share a filesystem in any practical way, so the uploads move to S3-compatible object storage and the databases move to services the cluster reaches over the network. Each of those changes needs a decision about ownership, backup, sizing and failover before any data is copied. Tutor's configuration values for these external services must match what the platform team has provisioned, and the team should confirm the exact keys against the version of Tutor it plans to run.
Treat the move as a planned migration, not a copy of the server. The cutover rehearsal matters most: run the full sequence against a staging copy with production-sized data, measure how long the data export and import take, confirm TLS issuance on the new load balancer, and write down the rollback path before the DNS change. Ask the team that will operate the cluster to own the runbook from the start, since the first weeks after cutover are when storage, certificate and database issues tend to surface.
Which single-server Tutor parts map to Kubernetes and which need redesign
This table compares each part of a single-server Tutor deployment with its Kubernetes counterpart and notes what changes during migration. Read the middle column as the target state and the last column as the work you need to plan. The main takeaway is that uploaded files are the item that does not map directly and needs S3-compatible object storage.
| Component | Single-server Tutor | Kubernetes target and migration note |
|---|---|---|
| Application containers | Docker containers started by Tutor on one host | Same Docker images deployed to the cluster by tutor k8s. Confirm the image tags match the release you run today before you start. |
| Relational data (MySQL) | Database container on the same server | External MySQL service reachable from every node. Plan a dump, import and row-count check before cutover. |
| Document data (MongoDB) | Database container on the same server | External MongoDB service with the same credentials and network path. Confirm which collections your release reads before you test. |
| Cache and sessions (Redis) | Redis container on the same server | External Redis service. Multi-node deployments need a shared cache backend, so a per-pod local cache will not work. |
| Uploaded course files | Local filesystem directory shared by the containers | Does not map directly. Kubernetes makes it difficult to share one filesystem between pods, so Tutor documents S3-compatible object storage for uploads. Move files to a bucket and test uploads and asset links before cutover. |
| TLS certificates | Certificates issued on the single host | Caddy LoadBalancer service generates TLS certificates in the Tutor Kubernetes target. Confirm certificate issuance works for your domains before you change DNS. |
| DNS and entry point | A/CNAME record points at the server address | Record points at the load balancer address created by the cluster. Lower the record TTL ahead of the change and keep the old server running for rollback. |
| Configuration and plugins | Tutor config.yml, plugins and local overrides on the host | Same Tutor configuration and plugins applied to the Kubernetes target. Check each plugin for Kubernetes support and record every override you keep. |
| Cluster nodes and capacity | One server sized for all services | Each node should have at least 4 GB of RAM according to Tutor's Kubernetes guidance. Confirm node sizing with your Tutor version before you buy capacity. |
How MySQL, MongoDB and Redis move out of the server
Keeping MySQL, MongoDB and Redis inside the Kubernetes cluster is the closest match to a single-server Tutor deployment. The same Tutor configuration drives the data services, so the team learns one operating model and the migration changes fewer moving parts. The trade-off is that the cluster now owns the data lifecycle, including storage classes, volume snapshots, restores and version upgrades.
- Backup ownership: Your team must schedule, store and test dumps or volume snapshots for each database, and confirm that restores work outside the cluster.
- Failover: Replication and promotion for MySQL and MongoDB are not automatic unless you design and test them, so confirm what the chosen charts provide.
- Access: Database ports stay within cluster networking, which simplifies network policy but makes direct access for analysts and auditors harder.
- Upgrades: Data service upgrades share the cluster upgrade calendar and need their own rollback plan.
- Resources: Stateful workloads compete with learner-facing pods for nodes and storage.
Before choosing this option, confirm the exact MySQL, MongoDB and Redis versions required by your Tutor release in the Tutor documentation.
Moving the data services to managed or externally operated instances separates data durability from the cluster lifecycle. Your database operator or cloud provider handles much of the backup, patching and failover machinery, and the cluster can be rebuilt without touching data. The cost is that connectivity, credentials and network paths become cross-system dependencies that must be designed and tested.
- Backup ownership: Confirm the provider's backup retention, point-in-time recovery options and whether restores are tested by you or by them.
- Failover: Check whether the service offers automatic failover in your chosen region and what the application sees during a switch.
- Access: Plan private connectivity, allowed source ranges and credential rotation so that pods reach the services without public exposure.
- Version support: Managed services may restrict the versions available, so confirm that they match the Tutor release you intend to run.
- Recurring cost: Service fees recur monthly or hourly, and they grow with instance size, storage, replicas and backup retention. Ask for the full cost model in writing.
Before committing, ask the provider to confirm that the MySQL and MongoDB versions they offer match your Tutor release requirements.
A mixed model places some services in the cluster and others outside it, most often keeping Redis as an in-cluster cache while moving MySQL and MongoDB to dedicated database platforms. Cache data is typically rebuildable, so it carries lower recovery risk than the learning record, which makes it a reasonable place to start. The mix must still be designed as one system, because the application depends on all three services at once.
- Split risk: Put the data that cannot be lost on the platform with the strongest backup and recovery controls.
- Shared cache: Multi-node deployments need a shared Django cache backend such as Redis or Memcached, so the chosen cache must be reachable from every web and worker pod.
- Latency: Measure round trips between cluster pods and external databases during testing, since cross-network calls add delay to every request.
- Two operating models: Your team will run in-cluster and external tooling side by side, which adds monitoring and access review work.
- Failure modes: Test what happens when the cache is unavailable and when the database is unreachable, separately.
Confirm the cache and database versions with the Tutor documentation for your release before choosing the split.
Documented tools and paths for the move
The move rests on a small set of documented mechanisms: the Tutor Kubernetes path, Tutor configuration and plugins, S3-compatible storage for uploads, and dump and restore of the MySQL and MongoDB data. Each card below names one of these pieces and what to verify before the cutover.
Tutor Kubernetes path
The tutor k8s target deploys the same Docker images used on your single server, so the application version stays constant during the move. Each node should have at least 4 GB of RAM, and Tutor deploys a Caddy LoadBalancer service that generates TLS certificates. Confirm the exact subcommands and manifest steps against the Tutor Kubernetes page before you script anything, and check that the Tutor version on the old server matches the one you deploy to the cluster.
Configuration carried by Tutor
Your settings live in the Tutor configuration file and in any plugins you enabled on the single server. Copy the configuration into the cluster environment, then list every plugin, patch and custom setting and confirm each one is enabled there. Missing plugin settings are a common cause of a cluster that starts but serves the wrong theme, login options or email behavior. Diff the effective configuration on both sides before cutover.
Plugins and hooks
Tutor plugins and their hooks carry customizations such as XBlocks, theme settings and third-party integrations into the generated Kubernetes manifests. Keep plugin versions pinned to the ones that ran on the single server. Check that any hook that patches a service still applies to the Kubernetes deployment, because a patch written for Docker Compose may target a container or volume that does not exist in the cluster.
S3-compatible object storage
Kubernetes makes it difficult to share one filesystem between pods, so uploaded files should move to S3-compatible object storage. Copy existing uploads from the local media volume to the bucket before cutover and set the storage configuration in Tutor to point at it. Verify that course images, uploaded assets and certificate files load from the new bucket, and confirm bucket access policy and credentials with your storage team.
Tutor Kubernetes docsMySQL dump and restore
Take a consistent MySQL dump from the single server while the platform is in maintenance mode, then restore it into the external MySQL instance the cluster uses. Confirm the database names, users and grants match what the Tutor configuration expects, and compare row counts for key tables such as users and enrollments after restore. Confirm the exact dump flags and restore commands against the Tutor documentation before the rehearsal.
MongoDB dump and restore
Dump the MongoDB data that holds course structure and discussion content from the single server, then restore it into the external MongoDB instance. Check the database names and authentication settings the cluster will use, and confirm that the MongoDB version you restore into is supported by the Open edX release you run. Verify course outlines and content load in Studio before you move any traffic.
The sequence from inventory to decommission
The sequence moves a single-server Tutor deployment onto Kubernetes in phases that each end with a checkpoint, so the cutover is a rehearsed event rather than a first attempt. Each phase produces evidence the client can review before the next one starts.
Inventory the current server
DeployOpen records the Open edX release, the Tutor version, enabled plugins, custom settings, themes, XBlocks, the uploads directory, and the size and location of every data volume (MySQL, MongoDB, Redis and media files). The client's platform owner confirms which customizations are still needed and which are abandoned. The step closes with a signed-off inventory document that lists every item to carry over and the reason for each one.
Build a Kubernetes pilot on the same release
The team installs the same Open edX release and Tutor version on a Kubernetes cluster using tutor k8s, with the same plugins and themes from the inventory. Nodes are checked against the minimum of 4 GB RAM per node in Tutor's Kubernetes guidance. The pilot is complete when Studio and the LMS load, a test course can be authored and enrolled in, and the Caddy LoadBalancer issues TLS certificates for a test hostname.
Provision external data stores and object storage
The client's database team sets up external MySQL, MongoDB and Redis endpoints with backups, network rules and credentials stored in the client's secrets system. Uploads move to S3-compatible object storage because Tutor documents object storage as the approach for uploaded files on Kubernetes. The step closes when the pilot can read and write to each service and a test upload survives a pod restart.
Rehearse the data load
DeployOpen loads a copy of the MySQL dump, MongoDB dump and media files into the pilot environment and records each command, its runtime and any errors. Each rehearsal is repeated until the load runs cleanly from start to finish and the checks pass: user counts, course counts, enrollments and a sample of uploaded files. The output is a runbook with exact commands and the verification queries used after each load.
Run a parallel environment on production data
The team runs the Kubernetes environment against a recent copy of production data while the old server continues to serve learners. Test accounts exercise enrollment, course playback, grading, Studio edits, email delivery and any SSO or analytics integrations. The step closes when the client's course and operations owners sign off on a written list of defects, each resolved or accepted, and the parallel run has no open blocking issues.
Cut over DNS and the load balancer with a rollback path
During an agreed window, the team stops writes on the old server, runs the final data sync, points DNS at the Kubernetes load balancer and confirms the new endpoint serves learners. The old server stays intact and the DNS record and data sync direction are documented so the team can reverse the change. The cutover is complete when smoke tests pass on the public hostname and the rollback steps have been checked against the runbook.
Decommission the old server after retention
After the retention period agreed with the client, the old server is shut down, its backups are archived or deleted according to the client's data retention policy, and its credentials are revoked. DeployOpen confirms with the client that no remaining services point at the old host. The step closes with a decommission record listing what was removed, where archived copies are stored and who approved the removal.
Where traffic, data and uploads go during the parallel run
Traffic starts at DNS, which points to the Caddy LoadBalancer service that Tutor deploys in the cluster. From there requests reach the Open edX pods, which read and write external MySQL, MongoDB and Redis, while uploaded files go to S3-compatible object storage instead of a shared pod filesystem. The legacy single server stays outside the cluster as the rollback target during the parallel run. Before cutover, check that each hand-off works from the cluster, that uploads land in object storage, and that DNS can be switched back to the legacy server.
Target layout with the legacy server kept as rollback during the parallel run.
What drives the effort and duration of the move
This table lists the factors that change how much work the move to Kubernetes involves, with what raises each factor and what lowers it. Use it to read a quote: each row names a question to ask the partner so the written scope reflects your actual deployment rather than a generic one.
| Driver | What raises it | What lowers it | Ask for in the quote |
|---|---|---|---|
| Uploaded media and database size | Large course video and asset libraries, long-lived MySQL and MongoDB data, many historical course re-runs | Clean-up of unused assets before migration, a current backup set, object storage already sized for uploads | Data volume assumptions, how the copy will be verified, and whether a test restore is included |
| Custom plugins and XBlocks | Plugins that write to local paths, depend on a shared filesystem, or were built against an older Tutor version | Plugins already packaged as Tutor plugins, a current inventory, and removal of unused code | A per-plugin review list, the rework each one needs, and who owns the Tutor plugin packaging |
| Environments to rebuild | Separate staging, production and any sandbox each needing their own cluster, secrets and data copy | A single reference environment built first, with production configuration generated from the same source | Which environments are in scope, whether each gets its own cluster, and how drift is prevented |
| Existing DNS and certificate arrangements | Many hostnames, manual certificate renewal, DNS managed by a third party with slow change control | Records and certificates documented in advance, one owner with change rights, short TTLs agreed before the cutover | Who makes DNS and certificate changes, the rollback DNS plan, and what the Caddy-generated certificates replace |
| Availability target for cutover | A requirement for near-zero learner downtime, active exams or certificate issuance during the window | A scheduled maintenance window agreed with course teams, and a freeze on course edits during the move | The cutover approach, the downtime expected in writing, and the rollback criteria |
| Client Kubernetes and object storage maturity | No existing cluster, no in-house Kubernetes operator, object storage not yet provisioned | An existing cluster with GitOps or CI practice, a working S3-compatible store, and staff trained on the cluster | What the partner builds versus what your team provides, and the handover and training included |
What usually goes wrong in a Tutor to Kubernetes move
Most failed moves from a single Tutor server to Kubernetes come from a handful of gaps: files that never left the old machine, data that was copied but not proven restorable, and settings that worked on one node but break across several. The cards below pair each risk with a check the team can run before cutover.
Uploads left on a local volume
Course assets, profile images and other uploads often stay on the old server's filesystem because the first pods appear to work. Kubernetes pods do not share one filesystem by default, so learners then see broken images on some requests. Tutor documents S3-compatible object storage for uploaded files for this reason. Check that Studio uploads and LMS-served assets are written to and read from the bucket, and that a file uploaded through one pod loads from another.
Tutor Kubernetes docsData loaded without a tested restore
A MySQL and MongoDB dump that imports without errors does not prove the platform works. Teams often skip a restore into the new external databases and a test login against it. Run the restore into a staging cluster with the same Tutor version, then open a course in Studio, enroll a test learner and check grades and discussions. Record the restore time so the cutover window is based on evidence.
Missing shared cache and sessions
Multi-node deployments need a shared Django cache backend such as Redis or Memcached. A single server can run on local cache and sessions without problems, so this setting is easy to miss. When the cache is local to each pod, users can be logged out at random or see stale content after a change. Confirm that Redis is reachable from every LMS and Studio pod, and test a login followed by requests that land on different pods.
DNS and certificate timing
The Caddy LoadBalancer service generates TLS certificates, and the new load balancer address must be ready before traffic moves. If the DNS record still points at the old server with a long cache lifetime, some users reach the old site for hours after cutover. Lower the TTL on the record well before the change, confirm the certificate issues for every hostname, and verify both the LMS and Studio domains from outside your network.
Plugin and theme settings lost
Custom settings, plugin configuration and theme files set on the old server can be missing from the Kubernetes configuration. Tutor's plugins and hooks must be enabled again in the new project, and any values stored only in the old environment will not follow. Compare the rendered configuration from both sides, list every enabled plugin and custom setting, and check that the login page, footer and a custom XBlock render on the new cluster.
No tested rollback path
Teams that cut over without a rollback plan find that reverting DNS is not enough once learners have written data to the new databases. Decide in advance which system is the source of truth after cutover, how long the old server stays intact, and how writes made in the new cluster would be recovered. Rehearse the rollback in staging and time it, so the decision to revert is made from a known procedure.
Questions buyers ask before moving Tutor to Kubernetes
What does it cost to move a Tutor deployment to Kubernetes?
The cost depends on the scope you agree in writing, and no price is published here. The main components are the discovery work (reviewing your current server, configuration, plugins and data volumes), the build of the target cluster and its external data services, the data migration and rehearsals, the cutover window, and handover documentation. Ask for a quote that lists each component separately, states what is one-time and what recurs, and names who pays for cloud resources (usually your account). Recurring costs sit mainly in the infrastructure you run: nodes, managed or self-run MySQL, MongoDB and Redis, S3-compatible storage, load balancing and backups. Costs rise with data volume, the number of custom plugins and themes, and how many environments you need to rehearse in.
How long does a Tutor to Kubernetes migration take?
Duration is set by the amount of data to move, the number of custom components to port, and how many rehearsal runs your change process requires. Tutor's Kubernetes target uses the same Docker images as the single-server deployment, so the image side is usually not the constraint. The schedule usually depends on confirming access to the cloud account and cluster, provisioning external MySQL, MongoDB, Redis and object storage, the time needed for a full data copy in a test environment, and the window your organization approves for the final cutover. Ask for a plan with dated milestones that depend on your approvals, and confirm which of these dependencies sit with your teams.
What must our team provide before the migration starts?
Plan to provide the following before work begins:
- Access to the current Tutor server, its project root and its backups, plus read access to the Tutor configuration and plugin list
- A cloud or data center account where the cluster, databases and object storage will run, with permission to create them
- Control of the DNS zone for the platform domain, so the records can change during cutover
- An S3-compatible bucket for uploaded files, since shared filesystems are difficult on Kubernetes
- Named people who can approve credentials, certificates and the cutover window
- Someone who can operate Kubernetes day to day after handover, or a contract for that support
Confirm each item with your platform and security teams early, because access approvals often take longer than the technical work.
Can our in-house team run this migration without a partner?
Yes, if your team already runs Kubernetes, managed databases and Tutor, and has time to rehearse the move. The work spans container orchestration, external data stores, object storage, TLS through the Caddy load balancer, DNS and a repeatable cutover, and most teams find the rehearsals and rollback testing the hardest part. An outside partner is most useful when the team lacks one of those skills, when the cutover has a fixed deadline, or when compliance evidence for the change is required. Whichever route you choose, write the scope, roles and acceptance tests before starting, and have the people who will operate the cluster take part in the build.
How do we limit downtime during the cutover?
Downtime is limited by rehearsing the full cutover at least once in a non-production environment, timing the final data sync, and lowering the DNS time to live before the window. The usual sequence is to put the old server into read-only or maintenance mode, take a final MySQL and MongoDB dump and a sync of uploads to the object store, restore into the new external services, verify the platform, then move DNS and the load balancer. Keep the old server running and unchanged until the new cluster passes acceptance checks. Downtime depends on the data volume and the verification steps your change process requires, so measure it in the rehearsal and set the window from that result.
What happens to the old Tutor server after cutover?
The old server should stay in place, unchanged and out of traffic, for a rollback period that your change process sets. During that time, keep its backups and dumps so you can restore the previous state if acceptance checks fail. Once the new platform is accepted, decide whether to snapshot and archive the server, delete it, or keep it for audit purposes. Remove DNS records that pointed to it, revoke credentials it used for the external services, and confirm that learner data copies are handled under your retention and privacy rules. Ask the team that runs the move to list these steps in the handover document.
What changes for your team after the cutover
The biggest day-to-day shift is that upgrades and configuration changes move from SSH sessions on one server to Tutor commands run against the cluster. On a single server, your team edited the Tutor project root, ran the configuration and image steps, and restarted services on one machine. On Kubernetes, the same Tutor workflow generates manifests and applies them to the cluster, so change control, image tags and rollback need to be written down before the first upgrade. Confirm the exact sequence of configuration, image build, and deployment commands for your Tutor release in the Tutor Kubernetes documentation, and rehearse one upgrade in a staging cluster before it touches learners.
Logs and monitoring also change shape. Instead of reading files on one host, your operators will look at pod logs for the LMS, Studio and worker deployments through the cluster tooling you run, and they will need an agreed place for metrics and alerts. Decide who owns those dashboards and who gets paged when a pod restarts or a node runs short of memory, given that each node should have at least 4 GB of RAM. The external MySQL, MongoDB and Redis services and the object storage bucket are now separate systems with their own backups, so your team must own their backup schedules, restore tests and retention settings. Tutor does not back these up for you in this model.
Certificate renewal depends on who owns the load balancer. Tutor deploys a Caddy LoadBalancer service that generates TLS certificates, so the certificate lifecycle now sits inside the cluster rather than on the single server. Name one owner for the DNS records, the load balancer address and the certificate status, and set an alert on certificate expiry as well as on failed renewals. Confirm the renewal behavior, the DNS record requirements and the steps for replacing a certificate in the Tutor documentation for your release, and record them in the runbook before go-live.
How DeployOpen works on this
DeployOpen scopes the move from Tutor local to Kubernetes as a written, fixed-scope engagement, then builds the cluster, external data stores and storage inside your own infrastructure. The work ends with a tested cutover and a handover your team can run without us.
How we scope
- Inventory the current single-server Tutor deployment, its Tutor version, plugins, themes and custom XBlocks before any cluster work starts
- Agree in writing which external MySQL, MongoDB, Redis and S3-compatible storage services are in scope, and who provisions each
- Define the DNS, load balancer and TLS changes, the cutover window and the rollback path as part of the signed scope
How we build
- Stand up the Kubernetes target with the same Tutor-managed images used on the single server, with nodes sized to Tutor's minimum memory guidance
- Move uploaded files to S3-compatible object storage, since shared filesystems are difficult across Kubernetes pods, and verify media links in Studio
- Rehearse the data migration and cutover in a staging copy, then test learner, instructor and admin paths before the production switch
How we hand over
- Document the cluster layout, data store connections, secrets locations, Caddy load balancer behavior and the runbook for each change
- Walk your platform and operations staff through deployments, backups, restores and the rollback procedure on your own environment
- Deliver the cutover test results and a list of open items with owners, so your team knows what to watch after go-live
How we support
- Engagements are fixed-scope, and support after handover can be agreed as a retainer covering upgrades and maintenance
- Confirm with us during scoping whether post-cutover patching and Tutor version upgrades are included in a retainer or a separate quote
- Ask for a written support boundary that names response expectations, hosting responsibilities and who owns the Kubernetes cluster afterward

