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

29 lines
731 B
YAML
Raw Normal View History

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