mirror of
https://gitlab.kube.huskypup.net/Scooby/Homelabv4.git
synced 2026-08-21 05:26:49 +00:00
Fix Redis CR permission denied on PVC (needs fsGroup)
redis-nextcloud-0 was CrashLoopBackOff: "mkdir: can't create directory
'/node-conf': Permission denied" and same for appendonlydir - the pod
had no podSecurityContext, so it couldn't write to its own PVC-backed
data directories. Added fsGroup/runAsUser: 1000 matching the
opstree/redis image's default non-root user. Verified live: Redis now
starts cleanly ("Ready to accept connections").
This commit is contained in:
@@ -49,6 +49,12 @@ metadata:
|
|||||||
name: redis-nextcloud
|
name: redis-nextcloud
|
||||||
namespace: nextcloud
|
namespace: nextcloud
|
||||||
spec:
|
spec:
|
||||||
|
# Without this, the redis process can't write to its PVC-backed data dirs
|
||||||
|
# (appendonlydir, node-conf) - "Permission denied", confirmed live 2026-08-17.
|
||||||
|
# 1000 matches the opstree/redis image's default non-root "redis" user.
|
||||||
|
podSecurityContext:
|
||||||
|
fsGroup: 1000
|
||||||
|
runAsUser: 1000
|
||||||
kubernetesConfig:
|
kubernetesConfig:
|
||||||
image: quay.io/opstree/redis:v7.0.12
|
image: quay.io/opstree/redis:v7.0.12
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
|||||||
Reference in New Issue
Block a user