ansible/roles/openshift-apps/mdapi/files/cron.yml
Clement Verna 659131c821 mdapi: fix the path of the script executed by the cronjob
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-04-25 11:55:22 +02:00

57 lines
1.9 KiB
YAML

apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: mdapi
spec:
concurrencyPolicy: Forbid
schedule: "20 * * * *"
jobTemplate:
spec:
template:
metadata:
labels:
parent: "cronjobmdapi"
spec:
containers:
- name: mdapi
image: docker-registry.default.svc:5000/mdapi/mdapi:latest
command: ["bash", "-c", "/code/mdapi-get_repo_md /etc/mdapi/mdapi.cfg; echo failed"]
volumeMounts:
- name: config-volume
mountPath: /etc/mdapi
readOnly: true
- name: data-volume
mountPath: /var/tmp
- name: fedora-messaging-config-volume
mountPath: /etc/fedora-messaging/
readOnly: true
- name: fedora-messaging-ca-volume
mountPath: /etc/pki/rabbitmq/ca
readOnly: true
- name: fedora-messaging-key-volume
mountPath: /etc/pki/rabbitmq/key
readOnly: true
- name: fedora-messaging-crt-volume
mountPath: /etc/pki/rabbitmq/crt
readOnly: true
restartPolicy: Never
volumes:
- name: config-volume
configMap:
defaultMode: 420
name: mdapi-configmap
- name: data-volume
persistentVolumeClaim:
claimName: mdapi-storage
- name: fedora-messaging-config-volume
configMap:
name: fedora-messaging-configmap
- name: fedora-messaging-ca-volume
secret:
secretName: mdapi-fedora-messaging-ca
- name: fedora-messaging-key-volume
secret:
secretName: mdapi-fedora-messaging-key
- name: fedora-messaging-crt-volume
secret:
secretName: mdapi-fedora-messaging-crt