From c64a6d983c19578be702775156f79b60fdc21053 Mon Sep 17 00:00:00 2001 From: yushao2 <36848472+yushao2@users.noreply.github.com> Date: Tue, 18 Mar 2025 19:06:45 +0800 Subject: [PATCH] add ability to customize redis container security context --- charts/open-webui/templates/websocket-redis.yaml | 4 ++++ charts/open-webui/values.yaml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/charts/open-webui/templates/websocket-redis.yaml b/charts/open-webui/templates/websocket-redis.yaml index 2982929..1606dad 100644 --- a/charts/open-webui/templates/websocket-redis.yaml +++ b/charts/open-webui/templates/websocket-redis.yaml @@ -57,6 +57,10 @@ spec: affinity: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.websocket.redis.securityContext }} + securityContext: + {{- toYaml . | nindent 8 }} + {{- end }} --- apiVersion: v1 kind: Service diff --git a/charts/open-webui/values.yaml b/charts/open-webui/values.yaml index 980256d..02007df 100644 --- a/charts/open-webui/values.yaml +++ b/charts/open-webui/values.yaml @@ -90,6 +90,12 @@ websocket: # -- Redis affinity for pod assignment affinity: {} + # -- Redis security context + securityContext: + {} + # runAsUser: 999 + # runAsGroup: 1000 + # -- Deploys a Redis cluster with subchart 'redis' from bitnami redis-cluster: # -- Enable Redis installation