fix mount volume permission

This commit is contained in:
2024-06-17 02:02:03 +10:00
parent 634fd9b80b
commit 99cf6a9bd9

View File

@@ -29,17 +29,17 @@ spec:
containerPort: 8080
name: http
volumeMounts:
- name: www
mountPath: /www
- name: assets
mountPath: /www/assets
volumes:
- name: www
- name: assets
hostPath:
path: /mnt/nfs/AppData/homer/www
path: /mnt/nfs/AppData/homer/www/assets
type: Directory
initContainers:
- name: volume-mount-permissions
image: b4bz/homer:v24.05.1
command: [ "sh", "-c", "chown -R 0:0 /www" ]
command: [ "sh", "-c", "chown -R 0:0 /www/assets" ]
volumeMounts:
- name: www
mountPath: /www
mountPath: /www/assets