fix(mudcraft): run initContainer as UID 1000 so plugin dirs are writable
LuckPerms was failing with AccessDeniedException on /data/plugins/LuckPerms/libs because the initContainer was creating directories as root. Main container runs as UID 1000 and couldn't write inside them. Running initContainer as matching UID 1000 fixes ownership.
This commit is contained in:
@@ -17,7 +17,7 @@ spec:
|
||||
labels:
|
||||
app: mudcraft
|
||||
annotations:
|
||||
kubectl.kubernetes.io/restartedAt: "2026-03-30T02:00:00Z"
|
||||
kubectl.kubernetes.io/restartedAt: "2026-03-30T02:15:00Z"
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 120
|
||||
initContainers:
|
||||
@@ -27,6 +27,9 @@ spec:
|
||||
- name: install-plugins
|
||||
image: registry.neuralplatform.ai/mudcraft/plugins:e41f6256805c28b3bb8e8832293afa3eab701082
|
||||
imagePullPolicy: Always
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
|
||||
Reference in New Issue
Block a user