add volume permission workaround

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-02-01 16:00:52 +01:00
parent c8576044b2
commit 0ea229e19a
11 changed files with 125 additions and 32 deletions

View file

@ -21,9 +21,20 @@ spec:
io.kompose.network/nextcloud-aio: "true"
io.kompose.service: nextcloud-aio-apache
spec:
securityContext:
fsGroup: 65534
fsGroupChangePolicy: "OnRootMismatch"
initContainers:
- name: init-volumes
image: alpine
command:
- chmod
- -R
- 777
- /nextcloud-aio-nextcloud
- /nextcloud-aio-apache
volumeMounts:
- name: nextcloud-aio-apache
mountPath: /nextcloud-aio-apache
- name: nextcloud-aio-nextcloud
mountPath: /nextcloud-aio-nextcloud
containers:
- env:
- name: APACHE_MAX_SIZE