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:
parent
1fdd1bf2e4
commit
223221c31e
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user