summaryrefslogtreecommitdiffstats
path: root/roles/openshift-apps/mdapi/files/cron.yml
blob: 60b429e775e2de80db0f1d044d9e86c7bbcf492f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
apiVersion: batch/v1beta1
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: docker-registry.default.svc:5000/mdapi/mdapi:latest
            command: ["bash", "-c", "/code/mdapi-get_repo_md /etc/mdapi/mdapi.cfg"]
            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