Why the Open WebUI to Kubernetes migration starts with state, not manifests
The move from one Open WebUI container to Kubernetes is mainly a data and dependency migration, and the Kubernetes manifests come after. A single container can keep its state in a local data directory and a bundled SQLite file, but several replicas cannot share that state safely, so the work starts with the databases, caches and storage the application depends on. The Open WebUI scaling guide sets the requirements: PostgreSQL instead of SQLite for multi-instance deployments, because SQLite does not handle concurrent writes from multiple processes well.
Three more components follow from the same rule. Redis must hold shared state for sessions, websocket connections and application state, because without it signing out does not revoke tokens and they stay valid until they expire, by default after 4 weeks. An external vector database must replace the default ChromaDB, which the guide warns will crash in multi-process setups. Uploads and knowledge must sit on shared file storage so every replica can read them. Each of these needs a home outside the pod before the first Helm install.
Effort depends on factors your team has to measure, not on a standard template. Confirm the size of your PostgreSQL database, the volume of uploaded files and vector data, how users sign in through OIDC, LDAP or SCIM, and whether your cluster already has a dependable foundation for stateful services, backups and secrets. A team with a small database and an existing PostgreSQL service is in a different position from one that must build all of those pieces first.
What maps cleanly from a single container and what does not
This table sorts each part of a single-container Open WebUI setup into one of three groups: settings that carry over as configuration, data that needs a move, and components that need a redesign before Kubernetes. Read it before writing Helm values, because the redesign rows set the architecture you must build first.
| Component | Single container today | Kubernetes target and action |
|---|---|---|
| Environment variables | Set on the container with docker run or Compose | Carry over as Helm values and Secrets; confirm each key against your installed version |
| Secret key | Generated on first start and stored in the data directory | Redesign: supply one fixed key through a Kubernetes Secret so every replica and later restore uses the same value |
| Relational database | SQLite file webui.db in the local data directory | Redesign: move to PostgreSQL, since the scaling guide requires it for multi-instance deployments; data needs a migration |
| SQLite on network storage | Acceptable only on locally attached SSD or NVMe for a single replica | Not acceptable for multi-replica use; do not place the database file on a shared volume |
| Session and token state | Tokens stay valid until they expire, by default after 4 weeks, when sign-out does not revoke them | Redesign: add Redis so sign-out revokes sessions across replicas and websocket connections are shared |
| Vector store | Embedded ChromaDB in the data directory | Redesign: the scaling guide warns the default ChromaDB crashes in multi-process setups, so choose an external store and re-index knowledge bases rather than copying vectors |
| Uploads and knowledge files | Files on the local data directory | Redesign: shared file storage reachable from every replica; plan a data move and confirm the storage class supports concurrent access |
| Persistent data volume | One host volume mounted into one container | Data move: a PersistentVolumeClaim holds the data directory during cutover, with a tested backup taken first |
| Users, groups and SSO | Local accounts or SSO configured in the admin panel | Carry over as configuration if stored in the database; confirm identity settings survive the database move |
| Container image and version | Pinned tag on one host | Carry over with the same pinned tag; confirm the target version before any upgrade step |
Which stores must exist before the first Kubernetes replica starts
Moving Open WebUI from one container to Kubernetes starts with the state that today lives inside the container. Each store below must exist and be reachable before the first replica starts, because every replica reads and writes the same data.
PostgreSQL replaces SQLite
PostgreSQL holds users, chats, settings and the other application records that a single container keeps in SQLite. The scaling guide requires PostgreSQL for multi-instance deployments because SQLite does not handle concurrent writes from multiple processes well. Confirm who operates the database, how backups and point-in-time recovery are handled, and whether the database sits on infrastructure your team already supports.
Scaling docsRedis shares session state
Redis is the shared store for sessions, websocket connections and application state, so any replica can serve any signed-in user. Without it, signing out does not revoke tokens, which then stay valid until they expire, by default after 4 weeks. Confirm who owns the Redis service, its memory sizing, its persistence settings and its network access rules before the first replica starts.
External vector database
The vector database holds embeddings for knowledge bases and retrieval. The default ChromaDB crashes in multi-process setups, so several workers or replicas need an external store. The retrieval docs list PGVector, Qdrant and Milvus among 13 supported options. Confirm which engine your team can operate, who handles upgrades and storage growth, and whether it can run in the same cluster or region as the application.
Shared file storage for uploads
Uploaded files and knowledge documents must stay reachable from every replica, so a local data directory on one node will not work once pods move between nodes. Compare shared file storage with an S3-compatible object store and confirm which your platform supports, how access is granted to pods, and how storage is backed up and restored alongside the database. Plan these together so a restore returns the database and files that match.
Secrets that hold configuration
Secrets hold the Open WebUI secret key, database and Redis credentials, and provider API keys. The secret key must match the value used before the move, or existing sessions and encrypted data will fail. Kubernetes stores Secrets unencrypted in etcd by default, so confirm that encryption at rest is configured, that RBAC limits who can read them, and whether an external secret store is required by your policy.
Secrets good practicesOpen WebUI replicas share state outside the pods
The diagram starts with users reaching an ingress inside the client's cluster, which routes to several Open WebUI replicas. Each replica reads and writes the same PostgreSQL database and Redis store, and uses an external vector database and shared file storage, so no replica holds state the others cannot see. The Kubernetes control plane, including the API server and etcd, sits beside the workload inside the same trust boundary. Check that every stateful dependency is reachable from all replicas, and that the control plane and its etcd backups are owned and protected by the team that runs the cluster.
Replicas share PostgreSQL, Redis, vector storage and files inside the cluster boundary.
Which documented paths move data and configuration
Open WebUI does not migrate data between databases on its own, so the move from one container to Kubernetes is assembled from several documented paths. Each path below covers a different part of the source setup, the target platform or the services you provide, and each needs its own check before cutover.
Docker and Compose source setup
Your current installation is the source of truth. Confirm which image tag, environment variables and volume mounts the running container uses, and where the data directory sits on the host. Record the secret key and any settings stored in the environment, because the target must use the same values to read existing data and sessions. Check how the single container stores its database and uploads before you copy anything.
Open WebUI featuresHelm install method for the target
Open WebUI lists Kubernetes with Helm as an official install method, so the target chart is a documented starting point. Map each environment variable from the source into Helm values and confirm which keys your chart version exposes for the database URL, Redis, vector database and persistence. Treat the chart as the record of configuration, and keep the values file under version control.
Scaling guideScaling guide infrastructure requirements
The scaling guide sets the conditions for a multi-replica target. PostgreSQL replaces SQLite, Redis holds shared sessions and websocket state, and an external vector database replaces the default ChromaDB. Shared file storage must make uploads and knowledge reachable from every replica. These requirements decide what must exist before any data is moved.
Scaling guideReader-provided PostgreSQL and Redis
Open WebUI uses the PostgreSQL and Redis services you provide, so their deployment, backups, access control and failover are your responsibility. Confirm the database version, connection limits and TLS settings with the Open WebUI release you run. Without Redis, signing out does not revoke tokens, and they stay valid for 4 weeks by default, so treat Redis as a security dependency, not an optional cache.
Scaling guidePip install for reference only
The pip install with open-webui serve is a documented method, but it is useful here only as a reference for the application's startup behavior and environment handling. It is not the target for a Kubernetes cluster. Use it in a scratch environment to confirm which settings a single process reads, and do not treat it as a migration path.
Open WebUI featuresSQLite to PostgreSQL is a separate job
Open WebUI does not migrate data between databases on its own, so moving from a SQLite file to PostgreSQL is a separate, documented job. Read the sibling topic on that move before cutover. Confirm the exact export and import steps for the version you run against its release notes, for example the latest release, v0.12.3, published on October 16, 2026. Do not assume an upgrade will carry the data across.
Open WebUI releasesThe Open WebUI to Kubernetes migration sequence, from inventory to decommission
The sequence moves a single-container Open WebUI installation onto Kubernetes in controlled stages, so each step produces evidence that the data, configuration and users came across intact before the old container is retired.
Inventory the current installation
Record everything the running container holds: user accounts, groups and roles, configured models and connections, knowledge bases, uploaded files, the database type and location, the WEBUI_SECRET_KEY value, and the exact Open WebUI version. Confirm the version against the project's release notes before choosing target images. The platform owner signs off on the inventory, and the security owner confirms where the secret key will be stored. The step closes when the inventory is written down and both owners have approved it.
Build the stores in a non-production cluster
Stand up PostgreSQL, Redis, an external vector database and shared object or file storage in a non-production cluster, then deploy Open WebUI with Helm values that point at them. Multi-replica operation depends on Redis for shared sessions and websocket state, and the scaling guidance rules out the default ChromaDB for several workers or replicas. The platform team signs off when the application starts, connects to every store and passes its health checks in that environment.
Migrate data and verify counts and sample files
Move the database contents and the data directory into the new stores, using the same secret key so existing sessions and encrypted values remain usable. Compare user, group, model and knowledge base counts between source and target, then open a sample of uploaded files and run a retrieval query against a knowledge base that was indexed before the move. Re-indexing vectors may be required, so confirm that approach with the vector database choice made in the previous step. The application owner signs off on the counts and sample results.
Run a pilot with a small user group
Point a small, named group of users at the Kubernetes deployment while everyone else stays on the container. Ask the pilot group to sign in through the chosen identity method, run chats against each configured model, use their knowledge bases and report errors through an agreed channel. Review logs and any failed requests with the platform team. The pilot closes when the application owner and the pilot group's sponsor agree that no open issue blocks wider use.
Run a parallel period with a defined rollback path
Keep the container running and its data untouched while the Kubernetes deployment serves the wider user base. Write down the rollback steps before the parallel period begins: which DNS or ingress record changes back, which data written during the period must be reconciled, and who makes the decision. Check that both environments are not writing to the same data at the same time, since the old and new stacks cannot share a SQLite file. The change owner signs off on the rollback plan before cutover.
Cut over ingress and decommission the container
Switch the DNS or ingress record to the Kubernetes deployment, confirm sign-in, model access and file retrieval from the production address, and keep the container stopped but present for the agreed retention window. Take a final backup of the old data directory and database before removal. Decommission only after the retention window closes and the owner confirms in writing that no reconciliation is outstanding. The sign-off is a dated decommission record stored with the change ticket.
How the cluster foundation changes the scope
If your organization already operates a Kubernetes cluster, most of the foundation work is verification and integration. The platform team usually owns the control plane, so the scope for Open WebUI covers what the workload needs from the cluster and what your security team must confirm before the first deployment.
- Identity integration: Kubernetes does not represent normal users as API objects. It authenticates them with X.509 client certificates, bearer tokens (including OpenID Connect and JWT), webhook token authentication or an authenticating proxy. Confirm which method your operators use and who can reach the cluster API.
- Pod Security Standards: Confirm the enforcement level on the namespace that will hold Open WebUI, PostgreSQL, Redis and the vector database, and check that the containers can run under it without privileged settings.
- Secrets encryption at rest: Kubernetes stores Secrets unencrypted in etcd by default. Ask whether encryption at rest is configured, who can list and watch Secrets, and whether an external store is available through the Secrets Store CSI Driver.
- Version skew: The version skew policy requires kube-apiserver to be upgraded one minor version at a time, and kubelets may be up to three minor versions older than kube-apiserver. Confirm the cluster's version is still maintained and get the platform team's upgrade calendar.
Before committing to a Helm values file, confirm with the platform team who approves namespace creation, which admission controls apply, and whether ingress, storage classes and backup tooling already meet the requirements in the rest of this page.
Building the cluster with kubeadm means your organization owns the control plane from the first node, including its data store. The kubeadm high availability guide describes two topologies, and the choice between them determines how many hosts you run and which failures take the control plane down together. Read the kubeadm high availability guide before sizing the hardware.
- Stacked etcd: etcd members run on the control plane nodes. This uses fewer machines, but a node failure removes both a control plane member and a data store member at once.
- External etcd: etcd runs as its own cluster, separate from the control plane. It needs more hosts and more operational work, and it isolates the data store from control plane failures.
- Control plane nodes and load balancer: The guide describes at least three control plane nodes, with a TCP load balancer in front of kube-apiserver on port 6443.
- Odd member count: etcd should run with an odd number of members. Kubernetes recommends five members for production.
- etcd snapshot backups: Take snapshots with etcdctl snapshot save, keep them off the cluster, and rehearse restores with etcdutl. Without tested backups, a lost etcd cluster means rebuilding control plane state.
Ask who runs etcd backups, where snapshots are stored, how often restores are rehearsed and whether the team has done a restore before. Those answers decide whether the self-managed option is staffed for production.
The choice between an existing cluster and a kubeadm build is mostly an operating decision, not a technical one for Open WebUI itself. Open WebUI runs the same way on either path, but the responsibilities for identity, data protection and upgrades move with the cluster. Settle this question first, because it sets the namespace, storage and backup responsibilities for every later step.
- Control plane ownership: An existing cluster moves control plane operations to a team that already runs it. A kubeadm build keeps those operations with your team from day one.
- Recovery skills: etcd restores are rare, high-stakes work. Confirm that people on call have practiced them, not only read the procedure.
- Evidence for assessors: Decide who can produce cluster configuration, access logs and backup records for compliance reviews, and whether the platform team already keeps them.
- Upgrade cadence: Kubernetes ships minor releases on a cycle of about 14 weeks and maintains the three most recent minor versions. Confirm that your team can keep pace with that cadence.
- Scope and quote: The cluster path changes which items appear in the written scope. A quote follows from that scope, so settle the path before requesting one.
If the platform team cannot commit to the responsibilities in the other two tabs, record that gap in the scope document before any Open WebUI workload is deployed.
What drives the cost and duration of an Open WebUI to Kubernetes migration
This table lists the factors that change the effort and cost of moving a single Open WebUI container onto Kubernetes, and whether each one is paid once or recurs. Read each row as a question to answer before accepting a quote: what raises the cost, what keeps it down, and what the written scope should state. Most of the effort sits in data movement, identity and restore testing rather than in writing Helm values.
| Driver | Why it matters and what raises it | What lowers it and what to ask for in a quote |
|---|---|---|
| SQLite database and uploads size | One-time. Large webui.db files and a big local uploads directory lengthen export, transfer, import and verification. Long-running copies raise the downtime window. | Lowered by a clean inventory of database size, upload count and total storage before scoping. Ask the quote to state how the copy is done, how long the cutover freeze is expected to be, and who verifies row counts and file checksums. |
| Knowledge bases and re-indexing | One-time. Vectors are re-created from source documents rather than copied, so the number of knowledge bases, document count and embedding model choice drive the indexing work and time. Ask whether re-indexing is inside the scope. | Lowered by pruning stale knowledge bases and confirming the embedding model in advance. Ask the quote to list the vector database chosen, the knowledge bases in scope and the re-indexing approach. |
| Identity integration (OIDC, LDAP, SCIM) | One-time for setup, with recurring admin effort. Each identity method adds claim mapping, group sync and login testing. SCIM provisioning adds lifecycle rules for deprovisioned users. | Lowered by settling on one identity method and a clear group model before the build. Ask the quote to name the protocol, the directory, the group mapping and who approves the test accounts. |
| Kubernetes foundation readiness | One-time. An existing, patched cluster with ingress, storage classes, secrets handling and monitoring shortens the work. A new cluster, or one without a tested control plane backup, adds platform work outside the Open WebUI migration. | Lowered when the cluster already meets your platform standards. Ask whether cluster build, hardening and etcd backup are included or assumed, and which items the client must supply. |
| Backup and restore testing | One-time for the first test, recurring for each release. A backup that has not been restored is not evidence. Restore drills across PostgreSQL, Redis state, file storage and vectors take more time than a single database dump. | Lowered by scripting restore steps and running them on a copy. Ask the quote to define the restore test, the pass criteria and whether the drill is repeated before cutover. |
| Number of environments | Recurring in effort. Each extra environment (test, staging, production) repeats configuration, secrets, identity setup and verification. Shared Helm values across environments reduce repeat work. | Lowered by a single Helm chart with environment-specific values files. Ask the quote how many environments are in scope and whether the same procedure runs in each. |
| Parallel run length | Recurring while both systems run. Keeping the container and the Kubernetes deployment live together doubles operating effort and can split user data if writes land in both. Longer runs raise support and reconciliation work. | Lowered by a short, dated parallel period with a read-only freeze on the old system. Ask the quote to state the parallel period length, who reconciles data written during it, and the rollback trigger. |
Where Open WebUI to Kubernetes migrations usually go wrong
Most failed moves from a single container to Kubernetes trace back to a short list of causes: state that stays on the wrong backend, secrets that do not carry over, and an upgrade that changes the target during the move. The cards below pair each risk with the step that prevents it and the check that shows it is handled before cutover.
Sessions survive sign-out
Without Redis, signing out of Open WebUI does not revoke tokens. They stay valid until they expire, by default after 4 weeks, so a user who signs out on one replica can still act from a stolen token. Deploy Redis before the second replica starts, and test that a sign-out on one pod ends access from every pod. Ask your security team whether the default expiry matches your policy.
Scaling docsSQLite on network storage
SQLite does not handle concurrent writes from multiple processes well, and a database file on network storage adds another failure point. Teams that copy the existing webui.db into a PersistentVolume backed by NFS or a similar share often see intermittent errors under load. Move the database to PostgreSQL before scaling out. For single-replica evaluation only, keep the file on locally attached SSD or NVMe storage, and confirm that the volume type is recorded in your manifests.
Default ChromaDB with several workers
The default ChromaDB crashes in multi-process setups, so any deployment that runs several workers or replicas needs an external vector database. Choose one before the first pod starts, such as PGVector, Qdrant or Milvus, and plan a re-index of existing knowledge bases rather than expecting embedded vectors to copy across. Check that a knowledge base query succeeds from every replica after cutover.
Features docsSecrets readable in etcd
Kubernetes Secrets are stored unencrypted in etcd by default. Open WebUI's secret key, database credentials and API keys land there unless you act. Enable encryption at rest for the API server, restrict list and watch on Secrets with least-privilege RBAC, or use an external store through the Secrets Store CSI Driver. The check is to read a Secret directly from etcd and confirm the value is not in plain text.
Secret key carried over wrong
Moving the data directory without the same secret key leaves encrypted or signed values unreadable on the new platform, and users may appear to lose access or stored credentials. Copy the key from the existing container's environment into a Kubernetes Secret before the first start, and compare a hash of the value on both sides rather than trusting a visual check. Confirm that a restored user can sign in and that a stored connection still works.
Upgrade during the move
Changing the Open WebUI version during the move makes it hard to tell whether a failure came from the platform or from the new release. Freeze the version the single container runs, complete the move on that version, and schedule any upgrade after cutover and a stable run. Check the release notes for database migrations on the target version before the first start, and keep the old container available for rollback until the new cluster passes its checks.
Open WebUI releasesQuestions buyers ask before hiring help for an Open WebUI to Kubernetes migration
What does an Open WebUI to Kubernetes migration cost?
The cost depends on the written scope, so DeployOpen does not publish a price here and a quote follows once scope is agreed. The main cost components are planning, provisioning or confirming the PostgreSQL, Redis, vector database and object storage services, Helm values work, the data migration and verification, and the cutover window. Ask for the quote to separate one-time work (build, migration, cutover) from recurring items (hosting of the new services, upgrades, support retainers). Cost rises with the number of users, the volume of uploads and knowledge bases, the number of identity providers to connect, and how many environments must be reproduced. Ask which of these items are included and which are your responsibility.
How long does the move from one container to Kubernetes take?
Duration is set by how much of the platform must exist before the data moves, and by how many people must sign off on the cutover. The critical path usually runs through the external services: PostgreSQL in place of SQLite, Redis for shared sessions, an external vector database in place of the default ChromaDB, and shared file storage that every replica can reach. Your cluster readiness, change windows, the size of the existing data directory and the number of test users also affect the schedule. Ask for a timeline in the written scope that lists each dependency and who owns it, rather than a single end date.
What must our team provide before the work starts?
Plan to provide cluster access in the environment you control, a decision on the database and storage services, and the identity provider the platform will use. Open WebUI documents SSO through OIDC and LDAP and SCIM 2.0 provisioning, so confirm which of these your directory supports and who administers it. Also provide a named test user group that can exercise chat, uploads, knowledge bases and admin functions during the parallel run, plus a change owner who can approve the cutover. Missing any of these usually moves the schedule more than the technical build does.
Can our internal team run this migration without outside help?
Yes, a team with Kubernetes, PostgreSQL and identity experience can do it, and the steps are documented in the Open WebUI scaling guide. The questions to answer honestly are whether anyone has run stateful services such as PostgreSQL and a vector database on Kubernetes, whether someone can own backups and restores, and whether there is capacity to test a cutover and a rollback. Outside help usually adds value in the data migration checks, the cutover plan and the verification steps that prove the new system matches the old one. Decide based on which of these skills already exist in your team.
Does the Open WebUI License change the cost or the scope of this move?
The license change matters if the deployment exceeds 50 users in any rolling 30-day period. Under the Open WebUI License, altering or removing Open WebUI branding in that case requires an enterprise license or written contributor permission. Code through v0.6.5 remains BSD-3-Clause, and the license applies from v0.6.6 onward. Moving to Kubernetes does not change the license terms by itself, but if you plan to rebrand the interface during the migration, add that decision to the written scope and confirm the license position with Open WebUI before the build. Enterprise licenses are quoted after contacting enterprise sales with an expected seat count.
How do we know the Kubernetes deployment is ready to replace the old container?
A parallel run proves that the new deployment handles real work under the same data, identity and access rules as the old one. In practice, the test group signs in through the production identity provider, runs chats and file uploads, queries knowledge bases, and checks that sessions survive a pod restart. Compare user counts, conversation records, uploaded files and vector search results between the two systems. The run also checks what the scaling guide warns about: signing out without Redis does not revoke tokens, and the default ChromaDB can fail in multi-process setups. Agree the pass criteria in the scope before the run starts.
What breaks most often during the cutover from a single container?
The most common failures come from state that stayed on the old container. Examples include a SQLite database file on network storage, uploads or knowledge files that exist only on local disk, and a secret key that differs between the old and new deployments. Another frequent issue is a vector store that was copied rather than rebuilt. Plan a rollback path that keeps the old container and its data untouched until the new system passes verification, and confirm backup and restore procedures for PostgreSQL and the object store before the cutover window opens.
How DeployOpen scopes and delivers this migration
DeployOpen plans the move from a single Open WebUI container to Kubernetes as a fixed-scope engagement, with the data stores, shared storage and Helm configuration agreed in writing before any cutover work begins. The work runs in your own cloud accounts, data centers or air-gapped network, so your team keeps control of the cluster, the data and the rollback path.
How we scope
- Inventory the current container, data directory, secret key, environment variables and any SQLite database before choosing targets.
- Agree the written scope for PostgreSQL, Redis, an external vector database and object storage, with each deliverable and timeline named.
- Confirm your cluster distribution, identity provider, ingress and certificate approach, and who signs off the cutover window.
How we build
- Stand up PostgreSQL, Redis, the vector database and shared file storage first, then point a staging Open WebUI release at them.
- Write Helm values for replicas, secrets, storage classes and health probes, and keep the same secret key across every replica.
- Test sign-in, uploads, knowledge base search and session behavior across multiple replicas before any user traffic moves.
How we hand over
- Deliver the migration runbook with data copy steps, row count and file checksum checks, cutover order and tested rollback steps.
- Document the Helm values, secret handling, backup targets and restore procedure so your platform team can run the release alone.
- Walk your operators through the cutover rehearsal and record the verification results they will reuse for later upgrades.
How we support
- Offer post-cutover support for the first production window, with the scope and response expectations written into the agreement.
- Provide ongoing support, upgrades and continuous testing as a retainer if your team wants DeployOpen to keep operating the release.
- Plan Open WebUI and Kubernetes upgrades together, reviewing version skew and release notes before each change is scheduled.

