From 8588def1ab99a84604f0d14fdcbac2489e710463 Mon Sep 17 00:00:00 2001 From: Will Anderson Date: Sun, 29 Mar 2026 20:37:38 -0500 Subject: [PATCH] fix(mudcraft): add fsGroup 1000 so PVC dirs are writable by server process Existing /data/plugins/LuckPerms/ dir on PVC was created by root, so UID 1000 couldn't create subdirs (libs/, etc.). fsGroup:1000 tells k8s to chown all volume mounts to group 1000 at pod startup, fixing access. --- servers/legion/k8s/mudcraft/statefulset.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/legion/k8s/mudcraft/statefulset.yaml b/servers/legion/k8s/mudcraft/statefulset.yaml index 3745d55..e71bfe4 100644 --- a/servers/legion/k8s/mudcraft/statefulset.yaml +++ b/servers/legion/k8s/mudcraft/statefulset.yaml @@ -17,9 +17,11 @@ spec: labels: app: mudcraft annotations: - kubectl.kubernetes.io/restartedAt: "2026-03-30T02:15:00Z" + kubectl.kubernetes.io/restartedAt: "2026-03-30T02:30:00Z" spec: terminationGracePeriodSeconds: 120 + securityContext: + fsGroup: 1000 initContainers: # Copies plugin JARs from the mudcraft/plugins image into the plugins PVC. # To add/update plugins: update the Dockerfile in mudcraft/mudcraft repo,