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

View file

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

View file

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

View file

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

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

View file

@ -22,9 +22,6 @@ spec:
io.kompose.network/nextcloud-aio: "true"
io.kompose.service: nextcloud-aio-imaginary
spec:
securityContext:
fsGroup: 65534
fsGroupChangePolicy: "OnRootMismatch"
containers:
- env:
- name: TZ

View file

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

View file

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

View file

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

View file

@ -22,9 +22,6 @@ spec:
io.kompose.network/nextcloud-aio: "true"
io.kompose.service: nextcloud-aio-talk
spec:
securityContext:
fsGroup: 65534
fsGroupChangePolicy: "OnRootMismatch"
containers:
- env:
- name: JANUS_API_KEY