diff --git a/manifests/deployment.yaml b/manifests/deployment.yaml index 3c03383..bda224d 100644 --- a/manifests/deployment.yaml +++ b/manifests/deployment.yaml @@ -18,6 +18,16 @@ spec: app: clawdbox spec: serviceAccountName: clawd-sa + initContainers: + - name: volume-permissions + image: docker.io/alpine:latest + command: + - sh + - -c + - "chown -R 1000:0 /data && chmod -R 775 /data" + volumeMounts: + - name: home + mountPath: /data containers: - name: clawdbox image: default-route-openshift-image-registry.apps.lab.apilab.us/clawdbox/clawdbox:latest