diff --git a/wekan/templates/deployment.yaml b/wekan/templates/deployment.yaml index c28e483..5bb8236 100644 --- a/wekan/templates/deployment.yaml +++ b/wekan/templates/deployment.yaml @@ -30,6 +30,13 @@ spec: {{- end }} spec: serviceAccountName: {{ template "wekan.serviceAccountName" . }} + initContainers: + - name: volume-permissions + image: busybox + command: ['sh', '-c', 'chown -R 999:999 /data'] + volumeMounts: + - name: shared-data-volume + mountPath: /data containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"