diff --git a/charts/open-webui/Chart.lock b/charts/open-webui/Chart.lock index 04dd174..5f37d9b 100644 --- a/charts/open-webui/Chart.lock +++ b/charts/open-webui/Chart.lock @@ -11,5 +11,8 @@ dependencies: - name: redis repository: https://charts.bitnami.com/bitnami version: 20.11.5 -digest: sha256:e056d54c822caf7601281777f54d88f32818982d52b7e81fbf811b8e4661265e -generated: "2025-04-13T21:46:37.771856+09:00" +- name: postgresql + repository: https://charts.bitnami.com/bitnami + version: 16.6.3 +digest: sha256:6da6a7bae03aba138c247775a786c0f459bdd9360db8980b0a5ffdea0fb88a5d +generated: "2025-04-13T03:03:27.462575+02:00" diff --git a/charts/open-webui/Chart.yaml b/charts/open-webui/Chart.yaml index 31c0829..782fc87 100644 --- a/charts/open-webui/Chart.yaml +++ b/charts/open-webui/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: open-webui -version: 6.2.0 +version: 6.3.0 appVersion: 0.6.4 home: https://www.openwebui.com/ icon: >- @@ -43,3 +43,8 @@ dependencies: version: '>=20.6.2' alias: redis-cluster condition: redis-cluster.enabled + - name: postgresql + repository: https://charts.bitnami.com/bitnami + version: '>=15.5.38' + alias: postgresql + condition: postgresql.enabled diff --git a/charts/open-webui/README.md b/charts/open-webui/README.md index 49677b7..0a1dc2b 100644 --- a/charts/open-webui/README.md +++ b/charts/open-webui/README.md @@ -1,6 +1,6 @@ # open-webui -![Version: 6.2.0](https://img.shields.io/badge/Version-6.2.0-informational?style=flat-square) ![AppVersion: 0.6.4](https://img.shields.io/badge/AppVersion-0.6.4-informational?style=flat-square) +![Version: 6.3.0](https://img.shields.io/badge/Version-6.3.0-informational?style=flat-square) ![AppVersion: 0.6.4](https://img.shields.io/badge/AppVersion-0.6.4-informational?style=flat-square) Open WebUI: A User-Friendly Web Interface for Chat Interactions 👋 @@ -34,6 +34,7 @@ helm upgrade --install open-webui open-webui/open-webui | Repository | Name | Version | |------------|------|---------| | https://apache.jfrog.io/artifactory/tika | tika | >=2.9.0 | +| https://charts.bitnami.com/bitnami | postgresql(postgresql) | >=15.5.38 | | https://charts.bitnami.com/bitnami | redis-cluster(redis) | >=20.6.2 | | https://helm.openwebui.com | pipelines | >=0.0.1 | | https://otwld.github.io/ollama-helm/ | ollama | >=0.24.0 | @@ -112,6 +113,7 @@ helm upgrade --install open-webui open-webui/open-webui | clusterDomain | string | `"cluster.local"` | Value of cluster domain | | containerSecurityContext | object | `{}` | Configure container security context ref: | | copyAppData.resources | object | `{}` | | +| databaseUrl | string | `""` | Configure database URL, needed to work with Postgres (example: `postgresql://:@:/`), leave empty to use the default sqlite database | | enableOpenaiApi | bool | `true` | Enables the use of OpenAI APIs | | extraEnvVars | list | `[{"name":"OPENAI_API_KEY","value":"0p3n-w3bu!"}]` | Env vars added to the Open WebUI deployment. Most up-to-date environment variables can be found here: https://docs.openwebui.com/getting-started/env-configuration/ | | extraEnvVars[0] | object | `{"name":"OPENAI_API_KEY","value":"0p3n-w3bu!"}` | Default API key value for Pipelines. Should be updated in a production deployment, or be changed to the required API key if not using Pipelines | @@ -153,6 +155,7 @@ helm upgrade --install open-webui open-webui/open-webui | podAnnotations | object | `{}` | | | podLabels | object | `{}` | | | podSecurityContext | object | `{}` | Configure pod security context ref: | +| postgresql | object | `{"architecture":"standalone","auth":{"database":"open-webui","password":"0p3n-w3bu!","postgresPassword":"0p3n-w3bu!","username":"open-webui"},"enabled":false,"fullnameOverride":"open-webui-postgres","primary":{"persistence":{"size":"1Gi"},"resources":{"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"250m","memory":"256Mi"}}}}` | Postgresql configuration (see. https://artifacthub.io/packages/helm/bitnami/postgresql) | | readinessProbe | object | `{}` | Probe for readiness of the Open WebUI container ref: | | redis-cluster | object | `{"auth":{"enabled":false},"enabled":false,"fullnameOverride":"open-webui-redis","replica":{"replicaCount":3}}` | Deploys a Redis cluster with subchart 'redis' from bitnami | | redis-cluster.auth | object | `{"enabled":false}` | Redis Authentication | diff --git a/charts/open-webui/charts/postgresql-16.6.3.tgz b/charts/open-webui/charts/postgresql-16.6.3.tgz new file mode 100644 index 0000000..36ca74d Binary files /dev/null and b/charts/open-webui/charts/postgresql-16.6.3.tgz differ diff --git a/charts/open-webui/templates/workload-manager.yaml b/charts/open-webui/templates/workload-manager.yaml index dce5f65..7013255 100644 --- a/charts/open-webui/templates/workload-manager.yaml +++ b/charts/open-webui/templates/workload-manager.yaml @@ -164,6 +164,10 @@ spec: - name: "WEBSOCKET_REDIS_URL" value: {{ .Values.websocket.url | quote }} {{- end }} + {{- if or .Values.postgresql.enabled .Values.databaseUrl }} + - name: "DATABASE_URL" + value: {{ .Values.databaseUrl | default (printf "postgresql://%s:%s@%s:%s/%s" .Values.postgresql.auth.username .Values.postgresql.auth.password .Values.postgresql.fullnameOverride "5432" .Values.postgresql.auth.database) }} + {{- end }} {{- if .Values.sso.enabled }} {{- if .Values.sso.enableSignup }} - name: "ENABLE_OAUTH_SIGNUP" diff --git a/charts/open-webui/values.yaml b/charts/open-webui/values.yaml index 0b72425..b39ea19 100644 --- a/charts/open-webui/values.yaml +++ b/charts/open-webui/values.yaml @@ -433,3 +433,27 @@ extraResources: # name: example-configmap # data: # example-key: example-value + +# -- Configure database URL, needed to work with Postgres (example: `postgresql://:@:/`), leave empty to use the default sqlite database +databaseUrl: "" + +# -- Postgresql configuration (see. https://artifacthub.io/packages/helm/bitnami/postgresql) +postgresql: + enabled: false + fullnameOverride: open-webui-postgres + architecture: standalone + auth: + database: open-webui + postgresPassword: 0p3n-w3bu! + username: open-webui + password: 0p3n-w3bu! + primary: + persistence: + size: 1Gi + resources: + requests: + memory: 256Mi + cpu: 250m + limits: + memory: 512Mi + cpu: 500m