From f982a5e96ed7f669680af10a022bcfbc29c3e87f Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Fri, 2 Jan 2026 18:52:42 +0100 Subject: [PATCH] added initcontainer --- workout-system/workout.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/workout-system/workout.yaml b/workout-system/workout.yaml index f921afb..a147ffe 100644 --- a/workout-system/workout.yaml +++ b/workout-system/workout.yaml @@ -79,6 +79,15 @@ spec: app.kubernetes.io/instance: wger app.kubernetes.io/name: wger spec: + initContainers: + - name: fix-permissions + image: alpine:latest + command: ["sh", "-c", "rm -rf /home/wger/static/lost+found"] + securityContext: + runAsUser: 0 + volumeMounts: + - name: static + mountPath: /home/wger/static containers: - name: wger image: wger/server:latest