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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user