cheeky cronjob
This commit is contained in:
parent
16acbf5b02
commit
e8084bf517
1 changed files with 23 additions and 0 deletions
|
@ -127,3 +127,26 @@ spec:
|
|||
port:
|
||||
number: 80
|
||||
|
||||
|
||||
---
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: nextcloud-cron
|
||||
namespace: home-server
|
||||
spec:
|
||||
schedule: "*/5 * * * *" # Every 5 minutes
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: curl-cron
|
||||
image: curlimages/curl:latest
|
||||
args:
|
||||
- "--fail"
|
||||
- "--silent"
|
||||
- "--show-error"
|
||||
- "http://nextcloud.home-server.svc.cluster.local/cron.php"
|
||||
restartPolicy: OnFailure
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue