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

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