From 2a4faf6a96b13d447db73266cf417658ba5343a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Can=CC=83ete?= Date: Wed, 19 Feb 2025 16:35:53 +0100 Subject: [PATCH] feat(open-webui): enhance redis deployment with additional configurable properties --- charts/open-webui/Chart.yaml | 2 +- charts/open-webui/README.md | 6 ++++-- charts/open-webui/templates/websocket-redis.yaml | 8 ++++++++ charts/open-webui/values.yaml | 5 +++++ charts/pipelines/README.md | 4 ++-- 5 files changed, 20 insertions(+), 5 deletions(-) diff --git a/charts/open-webui/Chart.yaml b/charts/open-webui/Chart.yaml index e5e9294..c2b24d6 100644 --- a/charts/open-webui/Chart.yaml +++ b/charts/open-webui/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: open-webui -version: 5.16.0 +version: 5.16.1 appVersion: 0.5.14 home: https://www.openwebui.com/ icon: >- diff --git a/charts/open-webui/README.md b/charts/open-webui/README.md index 2d4f7b3..3a45080 100644 --- a/charts/open-webui/README.md +++ b/charts/open-webui/README.md @@ -1,6 +1,6 @@ # open-webui -![Version: 5.16.0](https://img.shields.io/badge/Version-5.16.0-informational?style=flat-square) ![AppVersion: 0.5.14](https://img.shields.io/badge/AppVersion-0.5.14-informational?style=flat-square) +![Version: 5.16.1](https://img.shields.io/badge/Version-5.16.1-informational?style=flat-square) ![AppVersion: 0.5.14](https://img.shields.io/badge/AppVersion-0.5.14-informational?style=flat-square) Open WebUI: A User-Friendly Web Interface for Chat Interactions 👋 @@ -109,7 +109,8 @@ helm upgrade --install open-webui open-webui/open-webui | volumes | list | `[]` | Configure pod volumes ref: | | websocket.enabled | bool | `false` | Enables websocket support in Open WebUI with env `ENABLE_WEBSOCKET_SUPPORT` | | websocket.manager | string | `"redis"` | Specifies the websocket manager to use with env `WEBSOCKET_MANAGER`: redis (default) | -| websocket.redis | object | `{"annotations":{},"args":[],"command":[],"enabled":true,"image":{"pullPolicy":"IfNotPresent","repository":"redis","tag":"7.4.2-alpine3.21"},"labels":{},"name":"open-webui-redis","pods":{"annotations":{}},"resources":{},"service":{"annotations":{},"containerPort":6379,"labels":{},"nodePort":"","port":6379,"type":"ClusterIP"}}` | Deploys a redis | +| websocket.redis | object | `{"affinity":{},"annotations":{},"args":[],"command":[],"enabled":true,"image":{"pullPolicy":"IfNotPresent","repository":"redis","tag":"7.4.2-alpine3.21"},"labels":{},"name":"open-webui-redis","pods":{"annotations":{}},"resources":{},"service":{"annotations":{},"containerPort":6379,"labels":{},"nodePort":"","port":6379,"type":"ClusterIP"},"tolerations":[]}` | Deploys a redis | +| websocket.redis.affinity | object | `{}` | Redis affinity for pod assignment | | websocket.redis.annotations | object | `{}` | Redis annotations | | websocket.redis.args | list | `[]` | Redis arguments (overrides default) | | websocket.redis.command | list | `[]` | Redis command (overrides default) | @@ -127,6 +128,7 @@ helm upgrade --install open-webui open-webui/open-webui | websocket.redis.service.nodePort | string | `""` | Redis service node port. Valid only when type is `NodePort` | | websocket.redis.service.port | int | `6379` | Redis service port | | websocket.redis.service.type | string | `"ClusterIP"` | Redis service type | +| websocket.redis.tolerations | list | `[]` | Redis tolerations for pod assignment | | websocket.url | string | `"redis://open-webui-redis:6379/0"` | Specifies the URL of the Redis instance for websocket communication. Template with `redis://[:@]:/` | ---------------------------------------------- diff --git a/charts/open-webui/templates/websocket-redis.yaml b/charts/open-webui/templates/websocket-redis.yaml index 55de81b..d27efbc 100644 --- a/charts/open-webui/templates/websocket-redis.yaml +++ b/charts/open-webui/templates/websocket-redis.yaml @@ -45,6 +45,14 @@ spec: resources: {{- toYaml . | nindent 10 }} {{- end }} + {{- with .Values.websocket.redis.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.websocket.redis.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} --- apiVersion: v1 kind: Service diff --git a/charts/open-webui/values.yaml b/charts/open-webui/values.yaml index 54bdd02..00b9e89 100644 --- a/charts/open-webui/values.yaml +++ b/charts/open-webui/values.yaml @@ -84,6 +84,11 @@ websocket: port: 6379 # -- Redis service node port. Valid only when type is `NodePort` nodePort: "" + # -- Redis tolerations for pod assignment + tolerations: [] + + # -- Redis affinity for pod assignment + affinity: {} # -- Deploys a Redis cluster with subchart 'redis' from bitnami redis-cluster: diff --git a/charts/pipelines/README.md b/charts/pipelines/README.md index 2777cff..47a093b 100644 --- a/charts/pipelines/README.md +++ b/charts/pipelines/README.md @@ -70,8 +70,8 @@ helm upgrade --install open-webui open-webui/pipelines | serviceAccount.automountServiceAccountToken | bool | `false` | | | serviceAccount.enable | bool | `true` | | | tolerations | list | `[]` | Tolerations for pod assignment | -| volumeMounts | list | `[]` | Configure container volume mounts | -| volumes | list | `[]` | Configure pod volumes | +| volumeMounts | list | `[]` | Configure container volume mounts ref: | +| volumes | list | `[]` | Configure pod volumes ref: | ----------------------------------------------