blob: 79a1f15b4725db7a1ede81f1a12f3c12da34dd9d (
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
34
35
36
|
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: nextcloud
namespace: personal-services
spec:
schedule: "*/5 * * * *"
successfulJobsHistoryLimit: 0
failedJobsHistoryLimit: 2
jobTemplate:
spec:
template:
spec:
securityContext:
runAsUser: 33
runAsGroup: 33
nodeName: "mieshu.tyil.net"
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
...
|