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

30 lines
741 B
YAML

apiVersion: batch/v1
kind: CronJob
metadata:
name: nextcloud-cronjob
spec:
schedule: "*/5 * * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: nextcloud
image: nextcloud
securityContext:
runAsUser: 33
runAsGroup: 33
command:
- php
- -f
- /var/www/html/cron.php
volumeMounts:
- name: nextcloud-pv
mountPath: /var/www/html
volumes:
- name: nextcloud-pv
persistentVolumeClaim:
claimName: nextcloud-pvc