Add securityContext for Redis pod (#2640)

It seems the latest redis image changed security settings so
root-mounted volumes no longer work.
This change:
- mount redis volumes as redis user/group 999
- needed to run with redis >=8.0.2
This commit is contained in:
Ilya Kreymer 2025-06-10 22:20:18 +00:00 committed by GitHub
parent 1fdd1bf2e4
commit 223221c31e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,6 +42,11 @@ metadata:
spec: spec:
hostname: {{ name }} hostname: {{ name }}
subdomain: redis subdomain: redis
securityContext:
runAsNonRoot: true
runAsUser: 999
runAsGroup: 999
fsGroup: 999
terminationGracePeriodSeconds: 10 terminationGracePeriodSeconds: 10
volumes: volumes: