Files
wild-cloud/apps/nextcloud/cron.yaml
2025-05-18 15:27:37 -07:00

27 lines
655 B
YAML

---
apiVersion: batch/v1
kind: CronJob
metadata:
name: nextcloud-cron
spec:
schedule: "*/5 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: nextcloud
image: nextcloud:25.0.3-apache
imagePullPolicy: IfNotPresent
env:
- name: NEXTCLOUD_URL
valueFrom:
configMapKeyRef:
name: config
key: DOMAIN_URL
command:
- /bin/sh
- -c
- "curl -s ${NEXTCLOUD_URL}/cron.php"
restartPolicy: OnFailure