add nextcloud cron

master
Paul Walko 2020-11-07 09:41:31 -05:00
parent 8f206ba677
commit 97713b9a3e
1 changed files with 30 additions and 0 deletions

View File

@ -50,6 +50,36 @@ spec:
hostPath:
path: /bigdata/k8s-config/nextcloud/data
---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: nextcloud-cron
namespace: pew
spec:
schedule: "*/10 * * * *"
successfulJobsHistoryLimit: 1
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: nextcloud-cron
image: nextcloud:20.0.1-apache
command:
- "php"
- "-f"
- "/var/www/html/cron.php"
volumeMounts:
- mountPath: /var/www/html
name: nextcloud-data
readOnly: false
volumes:
- name: nextcloud-data
hostPath:
path: /bigdata/k8s-config/nextcloud/data
---
apiVersion: v1
kind: Service