add fixperms initcontainer
This commit is contained in:
parent
bf41886660
commit
babaf11969
|
|
@ -1,6 +1,29 @@
|
||||||
{{- define "readur.hardcodedValues" -}}
|
{{- define "readur.hardcodedValues" -}}
|
||||||
controllers:
|
controllers:
|
||||||
main:
|
main:
|
||||||
|
initContainers:
|
||||||
|
fixperms:
|
||||||
|
image:
|
||||||
|
repository: busybox
|
||||||
|
tag: latest
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
echo "Fixing permissions for Readur directories, this may take some time..."
|
||||||
|
chown -R 1000:1000 /app/uploads /app/watch
|
||||||
|
chmod -R 755 /app/uploads /app/watch
|
||||||
|
echo "Permissions fixed successfully"
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 0
|
||||||
|
runAsGroup: 0
|
||||||
|
runAsNonRoot: false
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
allowPrivilegeEscalation: true
|
||||||
|
capabilities:
|
||||||
|
add:
|
||||||
|
- CHOWN
|
||||||
|
- FOWNER
|
||||||
containers:
|
containers:
|
||||||
readur:
|
readur:
|
||||||
image:
|
image:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue