try a cron
Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
parent
d5971405cc
commit
9ae252e844
1 changed files with 22 additions and 0 deletions
22
roles/openshift-apps/release-monitoring/files/cron.yml
Normal file
22
roles/openshift-apps/release-monitoring/files/cron.yml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
apiVersion: batch/v1beta1
|
||||||
|
kind: CronJob
|
||||||
|
metadata:
|
||||||
|
name: anitya
|
||||||
|
spec:
|
||||||
|
schedule: "10 */12 * * *"
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
parent: "cronjobanitya"
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: release-monitoring-web
|
||||||
|
image: release-monitoring/release-monitoring-web:latest
|
||||||
|
image: perl
|
||||||
|
command: ["/usr/share/anitya/anitya_cron.py"]
|
||||||
|
env:
|
||||||
|
- name: ANITYA_WEB_CONFIG
|
||||||
|
value: /etc/anitya/anitya.cfg
|
||||||
|
restartPolicy: OnFailure
|
Loading…
Add table
Add a link
Reference in a new issue