diff --git a/deployments/pelican/deployment.yaml b/deployments/pelican/deployment.yaml index 4e57713..ca771a2 100644 --- a/deployments/pelican/deployment.yaml +++ b/deployments/pelican/deployment.yaml @@ -21,6 +21,13 @@ spec: app.kubernetes.io/name: pelican app.kubernetes.io/component: panel spec: + initContainers: + - name: fix-perms + image: busybox + command: ["sh", "-c", "chown -R 82:82 /pelican-data && chmod -R 770 /pelican-data"] + volumeMounts: + - name: data + mountPath: /pelican-data containers: - name: panel image: ghcr.io/pelican-dev/panel:latest @@ -84,3 +91,10 @@ spec: value: file - name: SESSION_DRIVER value: file + volumeMounts: + - name: data + mountPath: /pelican-data + volumes: + - name: data + persistentVolumeClaim: + claimName: pelican-data