mirrormanager: add missing mount on the cronjob

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2024-01-17 13:28:49 +01:00
parent 035f018242
commit 49a32725ba
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD

View file

@ -22,41 +22,47 @@ spec:
- name: config - name: config
mountPath: "/etc/mirrormanager" mountPath: "/etc/mirrormanager"
readOnly: true readOnly: true
- name: statistics
mountPath: "/var/www/mirrormanager-statistics"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: config name: config
--- - name: statistics
apiVersion: batch/v1 persistentVolumeClaim:
kind: CronJob claimName: statistics
metadata:
name: sync-crawler-logs # ---
spec: # apiVersion: batch/v1
successfulJobsHistoryLimit: 3 # kind: CronJob
failedJobsHistoryLimit: 3 # metadata:
concurrencyPolicy: Forbid # name: sync-crawler-logs
schedule: "55 * * * *" # spec:
startingDeadlineSeconds: 500 # successfulJobsHistoryLimit: 3
jobTemplate: # failedJobsHistoryLimit: 3
spec: # concurrencyPolicy: Forbid
template: # schedule: "55 * * * *"
spec: # startingDeadlineSeconds: 500
restartPolicy: Never # jobTemplate:
containers: # spec:
- name: mirrormanager # template:
image: mirrormanager:latest # spec:
command: ["bash", "/opt/scripts/sync-crawler-logs.sh"] # restartPolicy: Never
volumeMounts: # containers:
- name: config # - name: mirrormanager
mountPath: "/etc/mirrormanager" # image: mirrormanager:latest
readOnly: true # command: ["bash", "/opt/scripts/sync-crawler-logs.sh"]
- name: scripts # volumeMounts:
mountPath: "/opt/scripts" # - name: config
readOnly: true # mountPath: "/etc/mirrormanager"
volumes: # readOnly: true
- name: config # - name: scripts
configMap: # mountPath: "/opt/scripts"
name: config # readOnly: true
- name: scripts # volumes:
configMap: # - name: config
name: scripts # configMap:
# name: config
# - name: scripts
# configMap:
# name: scripts