From 97713b9a3e025f07826ac6d70329d5629d9d394b Mon Sep 17 00:00:00 2001 From: Paul Walko Date: Sat, 7 Nov 2020 09:41:31 -0500 Subject: [PATCH] add nextcloud cron --- fogcutter/k8s/nextcloud.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/fogcutter/k8s/nextcloud.yml b/fogcutter/k8s/nextcloud.yml index df590aa..ef0b626 100644 --- a/fogcutter/k8s/nextcloud.yml +++ b/fogcutter/k8s/nextcloud.yml @@ -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