2024-08-27 00:21:59 -04:00

36 lines
1.1 KiB
YAML

apiVersion: batch/v1
kind: CronJob
metadata:
name: mirrorupdate-almalinux
namespace: default
spec:
schedule: "35 */3 * * *"
successfulJobsHistoryLimit: 0
failedJobsHistoryLimit: 0
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
containers:
- name: mirrorupdate-almalinux
imagePullPolicy: Always
image: ghcr.io/0xemma/mirror-updater:v2.0.0
env:
- name: TARGET
value: /ext/mirror/almalinux
- name: SOURCE
value: rsync://rsync.repo.almalinux.org/almalinux/
- name: LASTUPDATE
value: http://rsync.repo.almalinux.org/almalinux/timestamp.txt
- name: FIRST
value: "no"
volumeMounts:
- name: mirror-pvc
mountPath: /ext/mirror/
restartPolicy: OnFailure
volumes:
- name: mirror-pvc
persistentVolumeClaim:
claimName: mirror-almalinux-rbd