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/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
|
||||
|
||||
Reference in New Issue
Block a user