add nextcloud cron
parent
8f206ba677
commit
97713b9a3e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue