From e24a7e88241276f0cb6e73cbd0fc7a7cc4c711c9 Mon Sep 17 00:00:00 2001 From: "A. Pervaiz" <77356768+arooshap@users.noreply.github.com> Date: Tue, 16 Jul 2024 21:43:18 +0200 Subject: [PATCH] Update cron-fetch-crl.yaml --- kubernetes/cmsweb/crons/cron-fetch-crl.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kubernetes/cmsweb/crons/cron-fetch-crl.yaml b/kubernetes/cmsweb/crons/cron-fetch-crl.yaml index 16842fca2..f37a1c9a7 100644 --- a/kubernetes/cmsweb/crons/cron-fetch-crl.yaml +++ b/kubernetes/cmsweb/crons/cron-fetch-crl.yaml @@ -1,4 +1,3 @@ -apiVersion: batch/v1 kind: CronJob metadata: name: fetch-crl-cronjob @@ -6,13 +5,13 @@ metadata: labels: jobgroup: parallel spec: - schedule: "0 0 * * *" # Runs daily at midnight + schedule: "24 * * * *" # Runs daily at midnight successfulJobsHistoryLimit: 1 failedJobsHistoryLimit: 1 jobTemplate: spec: - parallelism: 1 # Ensures one pod runs at a time - completions: 1 # Ensures each job runs to completion + parallelism: 5 # 8 for prod, Ensures one pod runs at a time + completions: 5 # 8 for prod, Ensures each job runs to completion template: metadata: labels: @@ -22,7 +21,7 @@ spec: - name: fetch-crl image: registry.cern.ch/cmsweb/fetch-crl:latest imagePullPolicy: Always - command: ["/usr/local/bin/update-crl.sh"] + command: ["mkdir -p /host/etc/grid-security/certificates && /usr/local/bin/update-crl.sh"] volumeMounts: - name: etc-grid-security mountPath: /host/etc/grid-security @@ -39,6 +38,7 @@ spec: - name: etc-grid-security hostPath: path: /etc/grid-security - type: Directory concurrencyPolicy: Allow + +