fix: Ensure Plex can write to its configuration and log directories by adding an init container and setting readOnlyRootFilesystem to false.
This commit is contained in:
@@ -17,6 +17,19 @@ spec:
|
||||
*app :
|
||||
annotations:
|
||||
reloader.stakater.com/auto: "true"
|
||||
initContainers:
|
||||
init-config:
|
||||
image:
|
||||
repository: busybox
|
||||
tag: latest
|
||||
command:
|
||||
[
|
||||
"sh",
|
||||
"-c",
|
||||
"mkdir -p '/config/Library/Application Support/Plex Media Server' && chown -R 1000:1000 '/config/Library/Application Support/Plex Media Server'",
|
||||
]
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
containers:
|
||||
app:
|
||||
image:
|
||||
@@ -44,7 +57,7 @@ spec:
|
||||
periodSeconds: 10
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
readOnlyRootFilesystem: false
|
||||
capabilities: { drop: [ALL] }
|
||||
resources:
|
||||
requests:
|
||||
@@ -102,9 +115,7 @@ spec:
|
||||
type: emptyDir
|
||||
globalMounts:
|
||||
- path: /config/Library/Application Support/Plex Media Server/Logs
|
||||
subPath: logs
|
||||
- path: /tmp
|
||||
subPath: tmp
|
||||
media:
|
||||
type: nfs
|
||||
server: 10.0.0.14
|
||||
|
||||
Reference in New Issue
Block a user