lets see if this gets the cron job all happy
This commit is contained in:
parent
baf160d03b
commit
42355920a9
1 changed files with 13 additions and 3 deletions
|
@ -3,6 +3,7 @@ kind: CronJob
|
||||||
metadata:
|
metadata:
|
||||||
name: anitya
|
name: anitya
|
||||||
spec:
|
spec:
|
||||||
|
concurrencyPolicy: Forbid
|
||||||
schedule: "10 */12 * * *"
|
schedule: "10 */12 * * *"
|
||||||
jobTemplate:
|
jobTemplate:
|
||||||
spec:
|
spec:
|
||||||
|
@ -13,9 +14,18 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: release-monitoring-web
|
- name: release-monitoring-web
|
||||||
image: release-monitoring/release-monitoring-web:latest
|
image: docker-registry.default.svc:5000/release-monitoring/release-monitoring-web:latest
|
||||||
command: ["/usr/share/anitya/anitya_cron.py"]
|
command: ["/usr/local/bin/anitya_cron.py"]
|
||||||
env:
|
env:
|
||||||
- name: ANITYA_WEB_CONFIG
|
- name: ANITYA_WEB_CONFIG
|
||||||
value: /etc/anitya/anitya.cfg
|
value: /etc/anitya/anitya.toml
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /etc/anitya
|
||||||
|
name: config-volume
|
||||||
|
readOnly: true
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
volumes:
|
||||||
|
- configMap:
|
||||||
|
defaultMode: 420
|
||||||
|
name: release-monitoring-configmap
|
||||||
|
name: config-volume
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue