Open WebUI on Kubernetes with Helm: when a single replica is enough and when it is not
A platform or infrastructure team asked to run Open WebUI on a cluster it controls needs to know early whether a single Helm release is enough or whether the release has to be built for multiple replicas. The official Helm chart deploys Open WebUI as a Kubernetes workload, and Kubernetes is a sensible target when your organization already operates clusters, wants declarative rollout and rollback, and expects to manage ingress, secrets and resource limits the same way it does for other services. If you have no cluster to operate, a Docker Compose or VM deployment will usually be less work to keep running. The Open WebUI features documentation lists three official install methods: Docker and Docker Compose, Kubernetes with Helm, and pip install open-webui followed by open-webui serve. Choosing Helm does not change what the application needs. It only changes how you package and run it.
The scaling guide decides how far one replica can take you. A single replica can use SQLite, but only when the database file sits on locally attached SSD or NVMe storage rather than network storage, and the guide limits that setup to single-replica deployments, evaluation and small teams. The moment you run more than one replica, the guide requires PostgreSQL instead of SQLite, Redis as a shared state store for sessions, websocket connections and application state, shared file storage so uploads and knowledge stay reachable from every replica, and an external vector database because the default ChromaDB will crash in multi-process setups. Those four dependencies are where most of the Helm work sits. Persistent volumes on a cluster are often network-backed, so a SQLite file on one of them does not meet the local storage condition. Confirm the storage class your cluster provides before you pick the single-replica path.
Single-replica path versus production path
The single-replica path runs one Open WebUI pod with its default SQLite database and local data on a persistent volume. It suits evaluation, a pilot group or a small team where one instance is acceptable and downtime during a restart or node failure is tolerable. The Open WebUI scaling guide allows SQLite for this case only when the database file sits on locally attached SSD or NVMe storage rather than network storage, so the volume class matters as much as the chart.
- Storage placement: the persistent volume must sit on local SSD or NVMe; a network-backed volume is not a fit for the database file.
- Scaling limit: SQLite does not handle concurrent writes from multiple processes well, so the deployment cannot add replicas without changing the database.
- Session behavior: without Redis, signing out does not revoke tokens, which stay valid until expiry, by default 4 weeks.
- Recovery: a node loss means restoring the volume or the database file from backup, so backup testing is the main availability control.
- Upgrade path: moving later to PostgreSQL and shared storage requires a data migration, so plan it rather than assume the chart will do it.
Before you deploy, confirm the node pool's storage class is local, that backups of the data volume are tested, and that your users accept a short outage during pod restarts.
The production path moves state out of the pod. PostgreSQL holds the application database, Redis holds shared sessions, websocket connections and application state, shared file storage keeps uploads and knowledge reachable from every replica, and an external vector database replaces the default ChromaDB. It suits multi-user rollouts, requirements for more than one replica, and environments where the team must rebuild or replace pods without losing state.
- PostgreSQL: required instead of SQLite for multi-instance deployments, and it becomes the system of record for backup and restore.
- Redis: required for multiple replicas so that sign-out revokes sessions across all pods.
- Shared file storage: uploads and knowledge must be readable from every replica, so the storage class must support shared access.
- Vector database: the scaling guide warns that the default ChromaDB crashes in multi-process setups, so an external store such as PGVector, Qdrant or Milvus is needed when running several workers or replicas.
- Operating cost: each external service adds a backup, patching and monitoring obligation that the single-replica path does not carry.
Before committing to this path, confirm which of these services already exist in your cluster or cloud account, who operates each one, and how each is backed up.
Adding replicas is the point where the two paths diverge most sharply. Each pod is a separate process, so every piece of state it touches must be shared or externalized. Scaling from one pod to several without preparing these services can produce lost sessions, failed uploads and database write contention that appear only under real load. Treat the replica count as the last setting you change, after the shared services are in place and tested.
- Database writes: replicas write to the same database, so SQLite must be replaced by PostgreSQL first.
- Session state: Redis must hold sessions and websocket state so a user's request can land on any pod.
- Files and knowledge: shared storage must be mounted in every pod that serves uploads or retrieval.
- Vector search: an external vector database must replace ChromaDB before the second worker or replica starts.
- Probes and limits: readiness and liveness checks and resource requests must be set per pod so the scheduler and load balancer route traffic only to healthy replicas.
Before increasing replicas, confirm that every shared service is reachable from each pod and that a test session survives a pod restart.
The choice depends on how many people use the instance, how much downtime is acceptable and which platform services your team already runs. A single-replica deployment is the lower-effort route for a pilot, but it is a poor base for a shared company service because it cannot scale out and its state sits on one volume. The production path takes more design and operating work, yet it is the route that supports replicas, rolling updates and separation of application state from pods. The Open WebUI scaling and performance guidance is the reference for the shared service sizing decisions.
- Pilot use: a single replica on local SSD fits a bounded group and a defined exit date.
- Shared service: the production path fits when many users depend on the instance daily.
- Migration cost: moving from the single-replica path to the production path involves a database migration and a storage move, so it is not a configuration change.
- Ownership: the production path adds services that must have named owners, backup schedules and alerts.
- Quote scope: ask any partner to price the shared services separately from the chart work, since they may be provided by your existing platform.
Before choosing, write down the expected user count, the acceptable restart window and the list of platform services you can reuse, then match the path to those answers.
Helm configuration options and when each fits
This table compares the production-relevant choices in the Open WebUI Helm chart, from database and shared state to vector store, secrets, replicas and probes. Read each row to find the option that matches your user count and availability needs, then confirm the exact value names against the chart version you pin.
| Choice | When it fits | Trade-off |
|---|---|---|
| Database: SQLite on local SSD or NVMe | Single replica, evaluation or a small team, with the database file on locally attached storage in the pod | Simple to run, but it does not suit multiple replicas and a rescheduled pod can lose its local data unless you manage that risk |
| Database: external PostgreSQL | Multiple replicas or any production setup that needs a shared, backed-up database | You operate or buy a PostgreSQL service, plus its backups, upgrades and connection limits |
| Redis for shared state | Any multi-replica deployment, since sessions, websocket connections and application state must be shared | Without Redis, signing out does not revoke tokens, which remain valid until expiry (by default 4 weeks per the scaling guide) |
| File storage for uploads and knowledge | Every multi-replica deployment, so uploads and knowledge stay reachable from all pods | Requires shared storage with its own access, backup and cost decisions; a single-replica pod can use a persistent volume instead |
| Vector database: default ChromaDB | Single-instance evaluation where retrieval is light and no extra service is wanted | The scaling guide warns the default ChromaDB will crash in multi-process setups, so it does not suit several workers or replicas |
| Vector database: external store (PGVector, Qdrant or Milvus) | Several workers or replicas, or knowledge bases that need a supported shared store | Another service to size, back up and secure; confirm the exact connection settings for your chosen store in the chart version you pin |
| Replica count | One replica for evaluation or small teams; more only after Redis, PostgreSQL, shared files and an external vector store are in place | Scaling replicas before shared state is ready causes session, upload and retrieval failures |
| Secret key and API keys | Set explicitly from a Kubernetes Secret or external secret manager so tokens and provider keys survive restarts and redeploys | Kubernetes Secrets are stored unencrypted in etcd by default unless encryption at rest is configured |
| Probes and resource requests and limits | Set probes so unhealthy pods are restarted or removed from service; set requests and limits from measured load in your environment | Limits set too low can cause restarts under load; the right values depend on your users and models, so measure them rather than copying defaults |
How to deploy the production path step by step
This sequence takes an empty cluster to an Open WebUI release that runs several replicas against external PostgreSQL, Redis and shared storage, with checks at each stage so your team can confirm the setup before users depend on it.
Prepare the cluster and namespace
Confirm the cluster runs a Kubernetes minor version that is still supported, then create a dedicated namespace with labels for your policy tooling. Apply Pod Security Standards at the level your cluster policy allows, and create a restricted service account for the release. Check the result with a dry-run install or an admission report: the namespace should accept the chart's pod spec without exemptions, and any exemption should be written down with an owner.
Provision PostgreSQL, Redis and shared storage
Create PostgreSQL, Redis and a shared file store outside the Helm release, so their lifecycle, backups and upgrades are not tied to the application. The scaling guide requires PostgreSQL instead of SQLite for multi-instance use, Redis for shared sessions and websocket state, and shared file storage so uploads and knowledge stay reachable from every replica. Confirm each service accepts connections from the namespace, and record the connection endpoints and the backup owner for each.
Create secrets through the cluster secret mechanism
Store the database password, Redis credentials and the Open WebUI secret key as Kubernetes Secrets or, preferably, as values synced from an external store. Kubernetes keeps Secrets unencrypted in etcd by default, so confirm encryption at rest is enabled on your control plane and restrict list and watch access with RBAC. Check that the secrets exist in the namespace and that no value appears in chart values files committed to version control.
Pin the chart and image version
Pin the Helm chart version and the Open WebUI image tag to exact values rather than floating tags, and record both in your change record. Review the release notes for the version you pin, including any license or branding changes that apply to that release. Confirm with
helm templatethat the rendered manifests contain the pinned image tag and no unexpected defaults, such as a bundled database that you intended to replace.Install the release with external connections
Install the chart with the values that point Open WebUI at your external PostgreSQL, Redis and shared storage, and that disable any bundled components you are replacing. Set replica count and resource requests and limits from your sizing exercise, and configure readiness and liveness probes against the health endpoint the chart exposes. Confirm the pods reach Ready, and check the logs for database migration completion and Redis connection messages before continuing.
Verify health probes and sign-in
Confirm the Service and ingress route to the pods, then sign in through your chosen identity method as an administrator and as a standard user. Check that a failing dependency, such as a stopped Redis pod in a test environment, causes the readiness probe to fail rather than sending traffic to a broken replica. The step is done when both sign-ins work and the probe behavior matches what you expect.
Test multi-replica rollout and session revocation
Scale to at least two replicas, then upload a file and create a knowledge item through one replica and confirm it is visible through the other. Perform a rolling restart during an active chat and confirm the session survives where expected. Sign out and confirm the token no longer works. Without Redis, the scaling guide notes that sign-out does not revoke tokens until they expire, which by default is 4 weeks, so this check verifies the shared state is working. Record the results before moving users onto the release.
Redis, PostgreSQL and shared storage sit behind the ingress, outside the model providers
The request starts at the ingress and reaches one of several Open WebUI replicas. Each replica shares session and websocket state through Redis, keeps relational data in PostgreSQL, reads and writes uploads and knowledge on shared file storage, and queries an external vector database instead of the default ChromaDB. The dashed trust boundary marks where traffic leaves the cluster toward model providers and the identity provider. Check that every store is reachable from all replicas, and that egress to providers is limited to approved destinations.
Request and data paths from the ingress to stores, providers and the identity provider.
How secrets, Kubernetes authentication and etcd protection fit together
Decide how the cluster protects Secrets before you store the Open WebUI secret key or database credentials in it. Kubernetes Secrets are stored unencrypted in etcd by default, so anyone who can read the etcd data directory or an etcd snapshot can read them. The Kubernetes secrets good practices page describes three controls you can combine: encryption at rest for the Secrets resource in etcd, least-privilege RBAC that restricts list and watch access to Secrets, and an external store reached through the Secrets Store CSI Driver. For the Helm release, confirm which of these your platform team already enforces, and check which service accounts and human roles can read Secrets in the namespace that holds Open WebUI.
Kubernetes authentication is a separate layer from Open WebUI sign-in. Kubernetes does not represent normal users as API objects. Instead it accepts X.509 client certificates, bearer tokens such as OpenID Connect and JWT tokens, webhook token authentication or an authenticating proxy, as the Kubernetes authentication documentation describes. Whoever runs helm upgrade or reads the Open WebUI Secret therefore needs a cluster identity, and that identity is governed by your cluster's identity integration, not by the SSO you configure inside Open WebUI. Document which cluster roles can deploy the chart, read its Secrets and exec into its pods, and keep those roles apart from the application users who sign in through the web interface.
Confirm the etcd backup plan before go-live. Snapshots hold the same Secret data that etcd stores, so backup copies need the same protection as the live cluster, and a restore test should show that the Open WebUI Secret and its encryption configuration come back together. The Kubernetes operating etcd documentation recommends a plan for etcd data and uses etcdctl snapshot save for backups and etcdutl for restores. Ask your platform owner who takes snapshots, where they are stored, how long they are retained, who can read them, and when a restore was last rehearsed. If the cluster is managed by a cloud provider, confirm with the provider which etcd backup and encryption controls are theirs and which are yours.
Security and operational controls to set on the cluster
These controls turn a working Open WebUI release into one an security team can sign off on. Each card names one setting, why it matters for this workload, and how to verify it after the Helm release is live. Review them together with your cluster's own baseline, since Open WebUI runs inside whatever policies your platform team already enforces.
Pod Security Standards on the namespace
Apply the Pod Security Standards at the namespace level, starting with the level your cluster policy requires and testing the Open WebUI pods against it before enforcing. Open WebUI pods run user-facing code paths, so a privileged or host-namespace pod should never be admitted there. Verify by running a server-side dry run of the Helm release against the enforced label and confirming no warnings are returned.
Pod Security StandardsNon-root and read-only filesystem
Set the pod security context to run as a non-root user and, where the image supports it, mount the root filesystem read-only with explicit writable volumes for data and temporary files. Confirm the image's runtime user and writable paths before you set these values, because some paths the application writes to may not be covered by a volume. Verify with kubectl exec into a running pod and by checking that writes outside the mounted volumes fail.
Egress limited to model providers
Use NetworkPolicy to allow outbound traffic from Open WebUI only to the model endpoints, the database, Redis and object storage it actually uses. Model providers differ by deployment, so list the hostnames or CIDR ranges your approved providers and internal model servers use, and confirm the cluster's network plugin enforces policy. Verify by launching a test pod in the same namespace and confirming that connections to unapproved destinations time out.
Secrets kept out of values files
Keep the secret key, database password, Redis credentials and provider API keys in Kubernetes Secrets or an external store, and reference them from the chart rather than writing them into values files committed to Git. Kubernetes stores Secrets unencrypted in etcd by default, so confirm encryption at rest is configured for the cluster. Verify by checking that no secret values appear in the rendered manifests and that RBAC prevents broad list and watch access to the namespace.
Secrets good practicesPinned image tags and release-note review
Pin the Open WebUI image to an exact version tag or digest in the Helm values, and do not use latest. Before each upgrade, read the release notes for the target version, including any license-related changes, and test the new tag in a non-production namespace. Verify by confirming the running pods report the expected image digest and that the change is recorded in your change log.
- Latest release noted
- v0.12.3
CIS Kubernetes Benchmark as the reference
Use the CIS Kubernetes Benchmark as the reference for checking the cluster that hosts Open WebUI, covering control plane, worker node and policy settings the chart does not control. Map the results to the benchmark's section IDs and record which ones your team accepts as exceptions with a reason. Verify with a benchmark scanner run against the cluster, then keep the report with the deployment record so reviewers can compare it with the chart configuration.
CIS Kubernetes BenchmarkQuestions teams ask before deploying Open WebUI on Kubernetes
What drives the cost of a production Open WebUI Helm deployment?
The cost is mostly people time and the infrastructure you already pay for, with the largest variables being the number of environments, how many external services you run, and how much hardening and testing the rollout requires. A production path needs PostgreSQL instead of SQLite for multi-instance deployments, Redis as a shared state store for sessions and websockets, shared file storage and an external vector database, because the scaling guide warns that the default ChromaDB will crash in multi-process setups. Each of those adds a cloud or hosting charge that recurs, plus one-time build work for values files, secrets, probes and resource limits. Ask any partner for a quote that separates one-time implementation from recurring upgrades, monitoring and support, and that lists which services you will provision versus which they will set up.
How long does a production Open WebUI on Kubernetes rollout take?
Duration depends on how many dependencies must be created or approved before the chart is installed, not on the chart itself. The biggest delays usually come from database and storage provisioning, identity provider integration, network and certificate approvals, and security review of secrets handling. A single-replica pilot with a local SSD-backed SQLite file can move quickly, while a multi-replica setup with PostgreSQL, Redis, object storage and an external vector store has more moving parts to validate, including failover and token revocation behavior. Ask for a written schedule that ties each milestone to a named dependency, and confirm which items you must unblock internally.
What must our team provide before the work starts?
The team needs to supply access and decisions, and the work cannot start until they are in place. Typically that means:
- Cluster access with rights to create namespaces, secrets, ingress and persistent volumes, plus a clear policy on which Kubernetes version you run
- A managed or self-hosted PostgreSQL instance, a Redis service and object storage for uploads and knowledge files
- An identity provider configured for OIDC or LDAP, with group mappings for Open WebUI roles
- A secret store or approved method for generating and rotating the secret key and database credentials
- A DNS name, TLS certificate source and an external vector database choice
Confirm each item in writing before scoping, because missing ownership of any one of them is the most common cause of schedule slips.
Can a capable platform team deploy this without outside help?
Yes, a platform team with Kubernetes, PostgreSQL and identity experience can deploy Open WebUI with the official Helm chart, and the project documents Kubernetes as one of its supported install methods. The harder part is the production configuration: making replicas share state correctly, avoiding SQLite on network storage, choosing an external vector store, and handling token revocation without Redis, where tokens stay valid until they expire, by default after 4 weeks. Teams that build it themselves usually lose time on those interactions and on testing failover. A useful test is whether your team can name the failure mode for each shared service before the first install.
When is Helm on Kubernetes the wrong choice for Open WebUI?
Helm on Kubernetes is the wrong choice when your organization does not already operate Kubernetes well, because the cluster itself adds upgrade, etcd backup, control plane and security duties that Open WebUI does not remove. If you only need one or two replicas for a small team, a managed container service or a Docker Compose stack with PostgreSQL and a persistent volume may be easier to run and audit. Kubernetes also brings version skew rules and a patch window for each minor release, so a team with no capacity for regular cluster upgrades should weigh that cost before choosing it. Compare the total operating load of each option, not only the first install.
What does the Open WebUI License mean once we pass 50 users?
The Open WebUI License forbids altering or removing Open WebUI branding in deployments that exceed 50 users in any rolling 30-day period, unless you hold an enterprise license or written contributor permission. Code through v0.6.5 remains BSD-3-Clause, and the branding clause applies to the newer license introduced with v0.6.6 in April 2025. If your rollout will grow past that threshold, plan the branding setting in your Helm values and confirm the terms with your legal team before go-live. Enterprise licenses allow white-labeling and are quoted after contacting sales with an expected seat count, and pricing is not published.
Does the Helm chart meet our security and compliance requirements?
The chart is a packaging tool, so compliance depends on how you configure secrets, identity, network policy, logging and resource controls around it. Kubernetes stores Secrets unencrypted in etcd by default, so you should enable encryption at rest and restrict list and watch access with least-privilege RBAC, or use an external store through the Secrets Store CSI Driver. Authentication for users should go through your identity provider, and you should review pod security settings against the Pod Security Standards. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors issue any audit reports or certifications.
Running upgrades and backups for the Helm release
The operating loop for a Helm-based Open WebUI release has five parts: pin the chart and image versions, read the release notes before every change, back up PostgreSQL and file storage together, rehearse rollback, and check health probes after each step. Pinning matters most. Set an explicit chart version and an explicit image tag in the values file, and never let the release track a floating tag such as latest. Keep both values under version control so that each deployed state can be reproduced and reverted. Open WebUI's releases have been published at a steady pace, with v0.12.3 released on October 16, 2026, so an unpinned release can change behavior between one reconcile and the next.
Read the Open WebUI releases on GitHub notes for every version between your current pin and the target before upgrading. Check for license changes, since code from v0.6.6 onward falls under the Open WebUI License, and confirm whether a release changes database migrations, environment variables or the Helm chart's values keys. Back up PostgreSQL and the file storage volume or bucket as one set taken from the same point in time. A database restored without matching uploads, or uploads restored without matching database rows, leaves knowledge bases and chat attachments broken. Confirm your backup tooling can restore both halves into a scratch namespace, and record how long that restore takes in your own environment, because the vendor does not supply a figure for it.
How DeployOpen scopes and delivers Open WebUI on Kubernetes
DeployOpen plans, builds, documents and supports Open WebUI on Kubernetes inside your own clusters and cloud accounts. We start from the Helm chart, then decide with your platform, security and identity teams which production components the deployment needs before any build work starts.
How we scope
- Written scope that names the target cluster, namespaces, ingress path and the Open WebUI version to pin
- Decision record for SQLite on local SSD versus PostgreSQL, Redis, external vector store and object storage
- Identity, admin access and license review, including whether your user count triggers the branding clause
- Agreed list of secrets sources, resource limits, health probes and network policies before the build starts
How we build
- Helm values files per environment, with image tags pinned and secrets referenced rather than stored in values
- PostgreSQL, Redis and object storage connected and checked from every replica before users are onboarded
- Health probes, resource requests and limits, and rollout settings tested against a planned upgrade
- Security testing of the deployed instance, including ingress, session handling and access to admin functions
How we hand over
- Runbook covering install, upgrade, rollback, backup restore and Redis or database failure response
- Architecture diagram, values reference and a record of each decision with its trade-off
- Verification evidence for compliance and security reviews, without audit or certification claims
- Knowledge transfer sessions with the engineers who will operate the chart day to day
How we support
- Ongoing support, upgrade testing and continuous security testing are available as retainers
- Upgrade work follows the Open WebUI release notes and your Kubernetes version support window
- Retainer scope is agreed in writing, including who responds to incidents and within what hours
- Quotes follow from the written scope, so ask for the scope items that drive the price

