fix: added security context to fix PV mounting

This commit is contained in:
Dario G. Mori
2026-01-15 13:04:36 +01:00
parent 14f7217063
commit 18aca83c73

View File

@@ -20,6 +20,16 @@ metadata:
{{- include "sure.labels" . | nindent 4 }}
spec:
clusterSize: {{ $replicas }}
# Pod-level volume permission fix for PV mounts
podSecurityContext:
fsGroup: 1000
fsGroupChangePolicy: OnRootMismatch
# Container-level user/group
securityContext:
runAsUser: 1000
runAsGroup: 1000
kubernetesConfig:
image: {{ printf "%s:%s" $imgRepo $imgTag | quote }}
redisSecret: