mirrormanager: add missing mount on the cronjob
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
035f018242
commit
49a32725ba
1 changed files with 40 additions and 34 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue