[download-web] Land mirrorbrain related cron jobs
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [download-web] Land mirrorbrain related cron jobs
- Date: Mon, 11 Nov 2019 13:07:17 +0000 (UTC)
commit eb6a6d2c302b7e8d1aea73b5006495ed304fb816
Author: Andrea Veri <averi redhat com>
Date: Mon Nov 11 14:07:19 2019 +0100
Land mirrorbrain related cron jobs
templates/create-hashes-cron.yaml | 32 ++++++++++++++++++++++++++++++++
templates/db-vacuum-cron.yaml | 25 +++++++++++++++++++++++++
templates/mirrorprobe-cron.yaml | 25 +++++++++++++++++++++++++
templates/mirrors-scan-cron.yaml | 25 +++++++++++++++++++++++++
4 files changed, 107 insertions(+)
---
diff --git a/templates/create-hashes-cron.yaml b/templates/create-hashes-cron.yaml
new file mode 100644
index 0000000..58742e5
--- /dev/null
+++ b/templates/create-hashes-cron.yaml
@@ -0,0 +1,32 @@
+apiVersion: batch/v1beta1
+kind: CronJob
+metadata:
+ name: create-hashes-cron
+spec:
+ schedule: '3 */3 * * *'
+ successfulJobsHistoryLimit: 3
+ failedJobsHistoryLimit: 1
+ jobTemplate:
+ metadata:
+ labels:
+ job: create-hashes-cron
+ spec:
+ template:
+ spec:
+ containers:
+ - name: create-hashes-cron
+ image: "docker-registry.default.svc:5000/download-web/latest"
+ command: ["/bin/sh", "-c"]
+ args:
+ - /usr/bin/mb makehashes /download/data/pub/GNOME/ -t /download/hashes
+ imagePullPolicy: Always
+ volumeMounts:
+ - mountPath: /download/hashes
+ name: download-hashes-data
+ dnsPolicy: ClusterFirst
+ restartPolicy: Never
+ terminationGracePeriodSeconds: 30
+ volumes:
+ - name: download-hashes-data
+ persistentVolumeClaim:
+ claimName: download-hashes-data-claim
diff --git a/templates/db-vacuum-cron.yaml b/templates/db-vacuum-cron.yaml
new file mode 100644
index 0000000..350e593
--- /dev/null
+++ b/templates/db-vacuum-cron.yaml
@@ -0,0 +1,25 @@
+apiVersion: batch/v1beta1
+kind: CronJob
+metadata:
+ name: db-vacuum-cron
+spec:
+ schedule: '30 1 * * 1'
+ successfulJobsHistoryLimit: 3
+ failedJobsHistoryLimit: 1
+ jobTemplate:
+ metadata:
+ labels:
+ job: db-vacuum-cron
+ spec:
+ template:
+ spec:
+ containers:
+ - name: db-vacuum-cron
+ image: "docker-registry.default.svc:5000/download-web/latest"
+ command: ["/bin/sh", "-c"]
+ args:
+ - /usr/bin/mb db vacuum
+ imagePullPolicy: Always
+ dnsPolicy: ClusterFirst
+ restartPolicy: Never
+ terminationGracePeriodSeconds: 30
diff --git a/templates/mirrorprobe-cron.yaml b/templates/mirrorprobe-cron.yaml
new file mode 100644
index 0000000..47d4493
--- /dev/null
+++ b/templates/mirrorprobe-cron.yaml
@@ -0,0 +1,25 @@
+apiVersion: batch/v1beta1
+kind: CronJob
+metadata:
+ name: mirrorprobe-cron
+spec:
+ schedule: '*/10 * * * *'
+ successfulJobsHistoryLimit: 3
+ failedJobsHistoryLimit: 1
+ jobTemplate:
+ metadata:
+ labels:
+ job: mirrorprobe-cron
+ spec:
+ template:
+ spec:
+ containers:
+ - name: mirrorprobe-cron
+ image: "docker-registry.default.svc:5000/download-web/latest"
+ command: ["/bin/sh", "-c"]
+ args:
+ - /usr/bin/mirrorprobe
+ imagePullPolicy: Always
+ dnsPolicy: ClusterFirst
+ restartPolicy: Never
+ terminationGracePeriodSeconds: 30
diff --git a/templates/mirrors-scan-cron.yaml b/templates/mirrors-scan-cron.yaml
new file mode 100644
index 0000000..1c48601
--- /dev/null
+++ b/templates/mirrors-scan-cron.yaml
@@ -0,0 +1,25 @@
+apiVersion: batch/v1beta1
+kind: CronJob
+metadata:
+ name: mirrors-scan-cron
+spec:
+ schedule: '0 */3 * * *'
+ successfulJobsHistoryLimit: 3
+ failedJobsHistoryLimit: 1
+ jobTemplate:
+ metadata:
+ labels:
+ job: mirrors-scan-cron
+ spec:
+ template:
+ spec:
+ containers:
+ - name: mirrors-scan-cron
+ image: "docker-registry.default.svc:5000/download-web/latest"
+ command: ["/bin/sh", "-c"]
+ args:
+ - /usr/bin/mb scan --quiet --jobs 4 --all
+ imagePullPolicy: Always
+ dnsPolicy: ClusterFirst
+ restartPolicy: Never
+ terminationGracePeriodSeconds: 30
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]