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

29 lines
728 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:
- name: nextcloud-pvc
mountPath: /var/www/html
command:
- php
- -f
- /var/www/html/cron.php
volumes:
- name: nextcloud-pvc
persistentVolumeClaim:
claimName: nextcloud-pvc