From 6f29be30bd45250525439de91e806d012f6910f6 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Thu, 22 May 2025 23:05:23 +0200 Subject: [PATCH] feat(pvc): Add SecurityContext for faster mount --- manifests/deployment.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/manifests/deployment.yaml b/manifests/deployment.yaml index 29ec6d2..3811fc1 100644 --- a/manifests/deployment.yaml +++ b/manifests/deployment.yaml @@ -22,6 +22,11 @@ spec: operator: In values: - "amd64" + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + fsGroup: 1000 + fsGroupChangePolicy: "OnRootMismatch" containers: - name: immich-server image: ghcr.io/immich-app/immich-server:v1.131.3 @@ -70,7 +75,13 @@ spec: image: redis:7.4.2 ports: - containerPort: 6379 + volumeMounts: + - mountPath: "/data" + name: immich-redis volumes: + - name: immich-redis + persistentVolumeClaim: + claimName: immich-redis-pvc - name: immich-upload persistentVolumeClaim: claimName: immich-pvc