2020-05-02 01:55:34 +00:00
|
|
|
apiVersion: batch/v1beta1
|
|
|
|
kind: CronJob
|
|
|
|
metadata:
|
|
|
|
name: nextcloud-cronjob
|
|
|
|
spec:
|
|
|
|
schedule: "*/15 * * * *"
|
|
|
|
jobTemplate:
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
spec:
|
|
|
|
restartPolicy: OnFailure
|
|
|
|
containers:
|
|
|
|
- name: nextcloud
|
|
|
|
image: nextcloud:18.0.4
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 33
|
|
|
|
runAsGroup: 33
|
|
|
|
volumeMounts:
|
2020-08-29 04:54:40 +00:00
|
|
|
- name: nextcloud-data
|
2020-05-02 01:55:34 +00:00
|
|
|
mountPath: /var/www/html
|
|
|
|
command:
|
|
|
|
- php
|
|
|
|
- -f
|
|
|
|
- /var/www/html/cron.php
|
|
|
|
volumes:
|
2020-08-29 04:54:40 +00:00
|
|
|
- name: nextcloud-data
|
2020-05-02 01:55:34 +00:00
|
|
|
persistentVolumeClaim:
|
2020-08-29 04:54:40 +00:00
|
|
|
claimName: nextcloud-data
|