Commit c88d42e6 authored by Jens Langhammer's avatar Jens Langhammer

helm: run busybox image to fix permissions

parent fc9fee93
......@@ -28,8 +28,8 @@ spec:
claimName: {{ include "pyazo.fullname" . }}-data
initContainers:
- name: fix-volume-permissions
image: "docker.pkg.beryju.org/pyazo:{{ .Values.image.tag }}"
command: ["sh", "-c", "chown -R pyazo:pyazo /app/media"]
image: busybox
command: ["sh", "-c", "chown -R 100: /app/media"]
volumeMounts:
- mountPath: /app/media
name: media-storage
......
......@@ -26,6 +26,13 @@ spec:
- name: media-storage
persistentVolumeClaim:
claimName: {{ include "pyazo.fullname" . }}-data
initContainers:
- name: fix-volume-permissions
image: busybox
command: ["sh", "-c", "chown -R 100: /app/media"]
volumeMounts:
- mountPath: /app/media
name: media-storage
containers:
- name: {{ .Chart.Name }}
image: "docker.pkg.beryju.org/pyazo:{{ .Values.image.tag }}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment