From 927bd6681180541f08939e52d771ce0fa1434328 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Thu, 26 Feb 2026 22:48:53 -0500 Subject: [PATCH] fix(irc): add init container to fix thelounge volume permissions Fresh PVC needs ownership set to uid 1000 before thelounge can start. Co-Authored-By: Claude Opus 4.6 --- thelounge/statefulset.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/thelounge/statefulset.yaml b/thelounge/statefulset.yaml index 1ba6f7c..724f1ce 100644 --- a/thelounge/statefulset.yaml +++ b/thelounge/statefulset.yaml @@ -29,6 +29,20 @@ spec: fsGroup: 1000 seccompProfile: type: RuntimeDefault + initContainers: + - name: fix-permissions + image: busybox:1.37 + command: ["sh", "-c", "chown -R 1000:1000 /var/opt/thelounge"] + volumeMounts: + - name: config + mountPath: /var/opt/thelounge + securityContext: + runAsNonRoot: false + runAsUser: 0 + resources: + limits: + cpu: 100m + memory: 64Mi containers: - name: thelounge image: ghcr.io/thelounge/thelounge:latest