diff --git a/charts/maildev/templates/cron.yaml b/charts/maildev/templates/cron.yaml index 30185c9..19e7d75 100644 --- a/charts/maildev/templates/cron.yaml +++ b/charts/maildev/templates/cron.yaml @@ -36,10 +36,16 @@ spec: volumeMounts: - name: data mountPath: {{ .Values.persistence.mountPath }} + securityContext: + runAsUser: 1000 + runAsGroup: 1000 - name: reload-mail image: "{{ .Values.cron.image.repository }}:{{ .Values.cron.image.tag }}" imagePullPolicy: {{ .Values.cron.image.pullPolicy }} args: ["wget","{{ include "common.names.fullname" . }}:1080/reloadMailsFromDirectory"] + securityContext: + runAsUser: 1000 + runAsGroup: 1000 volumes: - name: data persistentVolumeClaim: