fix: mount pelican-data PVC at /pelican-data with init container for permissions

This commit is contained in:
2026-05-20 00:09:53 +00:00
parent 059d189677
commit b26ef35c7e
+14
View File
@@ -21,6 +21,13 @@ spec:
app.kubernetes.io/name: pelican app.kubernetes.io/name: pelican
app.kubernetes.io/component: panel app.kubernetes.io/component: panel
spec: 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: containers:
- name: panel - name: panel
image: ghcr.io/pelican-dev/panel:latest image: ghcr.io/pelican-dev/panel:latest
@@ -84,3 +91,10 @@ spec:
value: file value: file
- name: SESSION_DRIVER - name: SESSION_DRIVER
value: file value: file
volumeMounts:
- name: data
mountPath: /pelican-data
volumes:
- name: data
persistentVolumeClaim:
claimName: pelican-data