Skip to content

Commit

Permalink
Update cron-fetch-crl.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
arooshap authored Jul 16, 2024
1 parent 430b5f5 commit e24a7e8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kubernetes/cmsweb/crons/cron-fetch-crl.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: fetch-crl-cronjob
namespace: auth
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:
Expand All @@ -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
Expand All @@ -39,6 +38,7 @@ spec:
- name: etc-grid-security
hostPath:
path: /etc/grid-security
type: Directory
concurrencyPolicy: Allow



0 comments on commit e24a7e8

Please sign in to comment.