fix: mount pelican-data PVC at /pelican-data with init container for permissions
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user