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