mirror of
https://gitlab.com/shouptech/flux.git
synced 2026-02-03 15:59:45 +00:00
Add kubernetes cron job
This commit is contained in:
parent
eae23695fb
commit
bc398a39c2
1 changed files with 22 additions and 0 deletions
22
workloads/nextcloud/nextcloud-cron.yml
Normal file
22
workloads/nextcloud/nextcloud-cron.yml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
apiVersion: batch/v1beta1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: nextcloudcron
|
||||
namespace: cron
|
||||
spec:
|
||||
schedule: "*/5 * * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: busybox
|
||||
image: busybox
|
||||
command:
|
||||
- "wget"
|
||||
- "http://nextcloud/cron.php"
|
||||
- "-o"
|
||||
- "/dev/null"
|
||||
- "-O"
|
||||
- "-"
|
||||
restartPolicy: never
|
||||
Loading…
Add table
Reference in a new issue