summaryrefslogtreecommitdiff
path: root/data.d/k3s-master/manifests.d/mieshu/personal-services/nextcloud/cron.yaml
blob: d362c0582e3f9656ef90fc4c2c94ae52507417e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
apiVersion: batch/v1
kind: CronJob
metadata:
  name: nextcloud
  namespace: personal-services
spec:
  schedule: "*/5 * * * *"
  jobTemplate:
    spec:
      template:
        spec:
          securityContext:
            runAsUser: 33
            runAsGroup: 33
          containers:
          - name: nextcloud
            image: nextcloud:27
            command:
            - php
            args:
            - -f
            - /var/www/html/cron.php
            volumeMounts:
            - mountPath: /var/www/html
              name: data
          restartPolicy: OnFailure
          volumes:
          - name: data
            hostPath:
              path: /mnt/pool/nextcloud
              type: Directory
...