mirror of
https://gitlab.com/shouptech/flux.git
synced 2026-02-03 17:09:45 +00:00
66 lines
1.6 KiB
YAML
66 lines
1.6 KiB
YAML
apiVersion: batch/v1beta1
|
|
kind: CronJob
|
|
metadata:
|
|
name: nextcloudcron
|
|
namespace: nextcloud
|
|
spec:
|
|
schedule: "*/5 * * * *"
|
|
concurrencyPolicy: Forbid
|
|
jobTemplate:
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: busybox
|
|
image: busybox:1.31.1
|
|
imagePullPolicy: IfNotPresent
|
|
command:
|
|
- "wget"
|
|
- "http://nextcloud/cron.php"
|
|
- "-o"
|
|
- "/dev/null"
|
|
- "-O"
|
|
- "-"
|
|
restartPolicy: Never
|
|
---
|
|
apiVersion: batch/v1beta1
|
|
kind: CronJob
|
|
metadata:
|
|
name: news-updater
|
|
namespace: nextcloud
|
|
spec:
|
|
schedule: "*/15 * * * *"
|
|
concurrencyPolicy: Forbid
|
|
jobTemplate:
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: news-updater
|
|
image: shouptech/nextcloud-news-updater:1
|
|
imagePullPolicy: IfNotPresent
|
|
env:
|
|
- name: UPDATER_USER
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: news-updater
|
|
key: username
|
|
- name: UPDATER_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: news-updater
|
|
key: password
|
|
command:
|
|
- "nextcloud-news-updater"
|
|
- "--user"
|
|
- "$(UPDATER_USER)"
|
|
- "--password"
|
|
- "$(UPDATER_PASSWORD"
|
|
- "--mode"
|
|
- "singlerun"
|
|
- "--loglevel"
|
|
- "info"
|
|
- "--timeout"
|
|
- "60"
|
|
- "http://nextcloud"
|
|
restartPolicy: Never
|