Skip to content
Snippets Groups Projects
Commit 00d1ea6c authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Added initContainers to fix write permissions

parent 2fcd3e2c
No related branches found
No related tags found
2 merge requests!1502Development,!1488Resolve "ResultLoader needs to be fixed"
......@@ -41,6 +41,17 @@ spec:
- name: mgcache-persistent-storage
persistentVolumeClaim:
claimName: mgcache
initContainers:
- name: init-chmod
image: busybox:latest
command: ['sh', "-c", "chown -R 0:101 /logs /cache && chmod -R g+w /logs /cache"]
volumeMounts:
- name: mglogs-persistent-storage
mountPath: /logs
readOnly: false
- name: mgcache-persistent-storage
mountPath: /cache
readOnly: false
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment