open-webui

by HelmForge

Helm chartv1.5.2App 0.11.0Apache-2.0Verified publisher

Open WebUI — self-hosted AI chat platform with Ollama and OpenAI support, RAG, multi-model conversations, and extensible plugin system

About this chart

Open WebUI Helm chart

Open WebUI is a self-hosted AI interface for Ollama and OpenAI-compatible model providers. This chart deploys a single Open WebUI instance with persistent data, optional PostgreSQL and Redis dependencies, ingress, and PostgreSQL backups.

Features

  • SQLite evaluation mode or PostgreSQL for production data.
  • Bundled or external PostgreSQL and Redis integrations.
  • Secret-backed application, provider, database, Redis, and S3 credentials.
  • HTTP startup, liveness, and database-aware readiness probes.
  • S3-compatible PostgreSQL backup CronJob.
  • Dedicated tokenless ServiceAccount and ingress-isolating NetworkPolicy.
  • Recreate upgrades to prevent concurrent migrations and SQLite access.
  • Strict values schema and fail-fast validation for incompatible modes.

Architecture

One web Deployment exposes a named HTTP port through a Service. The Service selects only web component pods, while backup Jobs use a separate component label. The data PVC stores SQLite, uploads, and embedding assets. Optional PostgreSQL and Redis dependencies provide production data and WebSocket paths. The design document explains why the chart remains single-replica.

Installation

Install from the signed OCI registry:

helm install open-webui oci://ghcr.io/helmforgedev/helm/open-webui \
  --namespace open-webui \
  --create-namespace

Wait for the initial embedding-model download and application startup:

kubectl wait --namespace open-webui \
  --for=condition=Available deployment/open-webui-open-webui \
  --timeout=15m
kubectl port-forward --namespace open-webui \
  service/open-webui-open-webui 8080:80

Open http://localhost:8080 and create the initial administrator account.

Configuration

Model providers

Connect Ollama:

openWebui:
  ollamaBaseUrl: http://ollama.ollama.svc.cluster.local:11434

Connect an OpenAI-compatible endpoint. Prefer a pre-created Secret:

kubectl create secret generic openai-credentials \
  --namespace open-webui \
  --from-literal=openai-api-key='replace-me'
openWebui:
  openaiBaseUrl: https://api.openai.com/v1
  openaiExistingSecret: openai-credentials
  openaiExistingSecretKey: openai-api-key

An endpoint that does not require authentication may set only openWebui.openaiBaseUrl; the chart does not create a dangling API-key reference.

Database modes

ModeConfigurationIntended use
SQLitedatabase.mode: auto with PostgreSQL disabledEvaluation and small single-user installs on local storage
Bundled PostgreSQLpostgresql.enabled: trueConvenient production starting point
External PostgreSQLdatabase.mode: externalOperator-managed production database

Bundled PostgreSQL:

postgresql:
  enabled: true
  auth:
    database: openwebui
    username: openwebui

External PostgreSQL with a Secret containing the full connection URL:

kubectl create secret generic open-webui-database \
  --namespace open-webui \
  --from-literal=database-url='postgresql://openwebui:[email protected]:5432/openwebui'
database:
  mode: external
  existingSecret: open-webui-database
  existingSecretKey: database-url

SQLite must not use NFS, SMB, CephFS, Azure Files, or another network-backed volume. Use PostgreSQL when the storage is not directly attached local SSD/NVMe.

Redis and WebSockets

Redis is optional for the supported single-replica topology. Enable the bundled dependency when preparing integrations that rely on Redis:

redis:
  enabled: true

For an external Redis instance, provide the complete URL through a Secret:

redisConfig:
  mode: external
  existingSecret: open-webui-redis
  existingSecretKey: redis-url

The chart configures both REDIS_URL and WEBSOCKET_REDIS_URL and enables the Redis WebSocket manager when Redis is active.

Ingress

ingress:
  enabled: true
  ingressClassName: nginx
  hosts:
    - host: chat.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - hosts:
        - chat.example.com
      secretName: open-webui-tls

Enabling ingress without at least one host fails during rendering.

PostgreSQL backups

The backup job streams pg_dump output to S3-compatible storage. Use an existing Secret for object-storage credentials:

postgresql:
  enabled: true
backup:
  enabled: true
  schedule: "0 3 * * *"
  s3:
    endpoint: https://s3.example.com
    bucket: open-webui-backups
    existingSecret: open-webui-s3
    existingSecretAccessKeyKey: access-key
    existingSecretSecretKeyKey: secret-key

External PostgreSQL backups additionally require backup.database.host, port, name, username, and a Secret containing only the database password. See the configuration guide.

Key values

ValueDefaultDescription
image.repositoryghcr.io/open-webui/open-webuiOfficial application image
image.tagv0.11.0Pinned application image tag
openWebui.port8080Application listener and container port
openWebui.ollamaBaseUrl""Ollama API URL
database.modeautoSQLite, bundled PostgreSQL, or external PostgreSQL selection
redisConfig.modeautoBundled, external, or disabled Redis selection
persistence.enabledtruePersist /app/backend/data
persistence.size10GiData PVC request
service.port80Kubernetes Service port
networkPolicy.enabledtrueIsolate inbound application traffic
backup.enabledfalseSchedule PostgreSQL backups

See values.yaml for the complete contract and examples/production.yaml for a production-oriented starting point.

Examples

  • examples/postgresql-multiuser.yaml enables PostgreSQL and Redis with measured resource placeholders.
  • examples/production.yaml adds existing Secrets, TLS ingress, larger persistence, backup, and NetworkPolicy guidance.

Security

The chart creates a dedicated ServiceAccount without an API token, enables RuntimeDefault seccomp, disables privilege escalation, drops Linux capabilities, and restricts inbound traffic to the named HTTP port. Egress is open because model endpoints and identity providers are operator-selected; set networkPolicy.egress to an environment-specific allowlist where possible.

The official image runs as UID 0 and needs writable application and home paths. Consequently, the chart does not claim runAsNonRoot or a read-only root filesystem by default. This exception and its operational consequences are documented in the security guide.

Avoid inline production credentials. Existing Secrets keep credentials out of rendered workload specs, but Helm values and Kubernetes Secret access still need strict RBAC. Terminate TLS at the ingress and protect the initial administrator enrollment path.

Operations

The first startup can take several minutes while Open WebUI downloads its RAG embedding model. The startup probe allows approximately ten minutes. Readiness uses /health/db, while startup and liveness use /health.

Read the operations guide before upgrades. It covers backup verification, restore drills, probe diagnosis, database connectivity, Redis connectivity, and the deliberate single-replica boundary.

Troubleshooting

Start with pod events, logs, Service endpoints, and both health routes:

kubectl describe pod --namespace open-webui \
  --selector app.kubernetes.io/name=open-webui
kubectl logs --namespace open-webui \
  deployment/open-webui-open-webui --tail=100
kubectl get endpointslice --namespace open-webui

Use the symptom-based procedures in the operations guide for startup downloads, database readiness, Redis WebSockets, PVC binding, and backup failures.

Upgrade notes

  • Back up PostgreSQL or the full data PVC before upgrading.
  • The Deployment uses Recreate, causing brief downtime while protecting SQLite and migration integrity.
  • PostgreSQL and Redis subcharts are independent stateful dependencies; review their release notes before dependency-major upgrades.
  • Do not run mixed Open WebUI versions against one database.

Documentation

  • Chart design and boundaries
  • Configuration reference
  • Operations and recovery
  • Security model
  • PostgreSQL multi-user example
  • Production example
  • Open WebUI documentation

Security Scan: open-webui

FrameworkScore
MITRE + NSA + SOC279.29293%

Security posture acceptable. The score is refreshed by CI from the rendered manifests and does not replace application-image vulnerability scanning.

Deploy open-webui with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has open-webui on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartopen-webui is pinned at v1.5.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply