mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
- Remove myconfig.py, mdapi.cfg, and config.toml unused configuration files - Remove associated ConfigMaps and volume mounts from templates - Remove fedora-messaging related configurations and volumes - Simplify hostname conditional logic in deploymentconfig template Signed-off-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
30 lines
786 B
Django/Jinja
30 lines
786 B
Django/Jinja
---
|
|
apiVersion: batch/v1
|
|
kind: CronJob
|
|
metadata:
|
|
name: mdapi
|
|
spec:
|
|
successfulJobsHistoryLimit: 3
|
|
failedJobsHistoryLimit: 1
|
|
concurrencyPolicy: Forbid
|
|
schedule: "20 * * * *"
|
|
jobTemplate:
|
|
spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
parent: "cronjobmdapi"
|
|
spec:
|
|
containers:
|
|
- name: mdapi
|
|
image: image-registry.openshift-image-registry.svc:5000/mdapi/mdapi:latest
|
|
command: ["bash", "-c", "/metasource/meta -loglevel info -location /var/tmp database"]
|
|
volumeMounts:
|
|
- name: data-volume
|
|
mountPath: /var/tmp
|
|
restartPolicy: Never
|
|
volumes:
|
|
- name: data-volume
|
|
persistentVolumeClaim:
|
|
claimName: mdapi-storage
|