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 <noreply@anthropic.com>
This commit is contained in:
2026-02-26 22:48:53 -05:00
parent 37cb7b9a14
commit 927bd66811
+14
View File
@@ -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