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