From 49a32725bae8d88936198e39ca21bfd573656538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Wed, 17 Jan 2024 13:28:49 +0100 Subject: [PATCH] mirrormanager: add missing mount on the cronjob MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- .../mirrormanager/files/cron.yml | 74 ++++++++++--------- 1 file changed, 40 insertions(+), 34 deletions(-) diff --git a/roles/openshift-apps/mirrormanager/files/cron.yml b/roles/openshift-apps/mirrormanager/files/cron.yml index 5555ed0514..613e057c70 100644 --- a/roles/openshift-apps/mirrormanager/files/cron.yml +++ b/roles/openshift-apps/mirrormanager/files/cron.yml @@ -22,41 +22,47 @@ spec: - name: config mountPath: "/etc/mirrormanager" readOnly: true + - name: statistics + mountPath: "/var/www/mirrormanager-statistics" volumes: - name: config configMap: name: config ---- -apiVersion: batch/v1 -kind: CronJob -metadata: - name: sync-crawler-logs -spec: - successfulJobsHistoryLimit: 3 - failedJobsHistoryLimit: 3 - concurrencyPolicy: Forbid - schedule: "55 * * * *" - startingDeadlineSeconds: 500 - jobTemplate: - spec: - template: - spec: - restartPolicy: Never - containers: - - name: mirrormanager - image: mirrormanager:latest - command: ["bash", "/opt/scripts/sync-crawler-logs.sh"] - volumeMounts: - - name: config - mountPath: "/etc/mirrormanager" - readOnly: true - - name: scripts - mountPath: "/opt/scripts" - readOnly: true - volumes: - - name: config - configMap: - name: config - - name: scripts - configMap: - name: scripts + - name: statistics + persistentVolumeClaim: + claimName: statistics + +# --- +# apiVersion: batch/v1 +# kind: CronJob +# metadata: +# name: sync-crawler-logs +# spec: +# successfulJobsHistoryLimit: 3 +# failedJobsHistoryLimit: 3 +# concurrencyPolicy: Forbid +# schedule: "55 * * * *" +# startingDeadlineSeconds: 500 +# jobTemplate: +# spec: +# template: +# spec: +# restartPolicy: Never +# containers: +# - name: mirrormanager +# image: mirrormanager:latest +# command: ["bash", "/opt/scripts/sync-crawler-logs.sh"] +# volumeMounts: +# - name: config +# mountPath: "/etc/mirrormanager" +# readOnly: true +# - name: scripts +# mountPath: "/opt/scripts" +# readOnly: true +# volumes: +# - name: config +# configMap: +# name: config +# - name: scripts +# configMap: +# name: scripts