1
0
Fork 0
home-stack-kustomize/kustomize/bases/nextcloud/nextcloud-cronjob.yaml

30 lines
741 B
YAML
Raw Normal View History

2021-08-27 04:57:25 +00:00
apiVersion: batch/v1
2020-05-02 01:55:34 +00:00
kind: CronJob
metadata:
name: nextcloud-cronjob
spec:
2021-08-27 04:57:25 +00:00
schedule: "*/5 * * * *"
concurrencyPolicy: Forbid
2020-05-02 01:55:34 +00:00
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: nextcloud
2021-08-27 04:57:25 +00:00
image: nextcloud
2020-05-02 01:55:34 +00:00
securityContext:
runAsUser: 33
runAsGroup: 33
command:
- php
- -f
- /var/www/html/cron.php
2021-08-27 04:57:25 +00:00
volumeMounts:
- name: nextcloud-pv
mountPath: /var/www/html
2020-05-02 01:55:34 +00:00
volumes:
2021-08-27 04:57:25 +00:00
- name: nextcloud-pv
2020-05-02 01:55:34 +00:00
persistentVolumeClaim:
2021-08-27 04:57:25 +00:00
claimName: nextcloud-pvc