From f06ddd9f2f8dcdd330a26f177db7188925fac7ff Mon Sep 17 00:00:00 2001 From: jyje Date: Tue, 7 Jan 2025 23:33:49 +0900 Subject: [PATCH] feat(websocket): change redis name and set container resources --- charts/open-webui/templates/websocket-redis.yaml | 4 ++++ charts/open-webui/values.yaml | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/charts/open-webui/templates/websocket-redis.yaml b/charts/open-webui/templates/websocket-redis.yaml index b529e07..b230805 100644 --- a/charts/open-webui/templates/websocket-redis.yaml +++ b/charts/open-webui/templates/websocket-redis.yaml @@ -37,6 +37,10 @@ spec: ports: - name: http containerPort: {{ .Values.websocket.redis.service.containerPort }} + {{- with .Values.websocket.redis.resources }} + resources: + {{- toYaml . | nindent 10 }} + {{- end }} --- apiVersion: v1 kind: Service diff --git a/charts/open-webui/values.yaml b/charts/open-webui/values.yaml index b228663..55057c0 100644 --- a/charts/open-webui/values.yaml +++ b/charts/open-webui/values.yaml @@ -38,13 +38,13 @@ websocket: # -- Specifies the websocket manager to use with env `WEBSOCKET_MANAGER`: redis (default) manager: redis # -- Specifies the URL of the Redis instance for websocket communication - url: redis://websocket-redis:6379/0 + url: redis://open-webui-redis:6379/0 # -- Deploys a redis redis: # -- Enable redis installation enabled: true # -- Redis name - name: websocket-redis + name: open-webui-redis # -- Redis labels labels: {} # -- Redis annotations @@ -58,6 +58,8 @@ websocket: command: [] # -- Redis arguments args: [] + # -- Redis resources + resources: {} # -- Redis service service: # -- Redis container/target port