37 lines
966 B
YAML
37 lines
966 B
YAML
apiVersion: batch/v1
|
|
kind: CronJob
|
|
metadata:
|
|
name: ncore-hnr
|
|
spec:
|
|
schedule: "0 6 * * *"
|
|
concurrencyPolicy: Forbid
|
|
successfulJobsHistoryLimit: 3
|
|
failedJobsHistoryLimit: 3
|
|
jobTemplate:
|
|
spec:
|
|
backoffLimit: 1
|
|
template:
|
|
spec:
|
|
restartPolicy: Never
|
|
containers:
|
|
- name: ncore-hnr
|
|
image: ncore-hnr:local
|
|
imagePullPolicy: IfNotPresent
|
|
envFrom:
|
|
- secretRef:
|
|
name: ncore-hnr-secrets
|
|
env:
|
|
- name: APP_DB_PATH
|
|
value: /data/ncore-hnr.sqlite
|
|
- name: DRY_RUN
|
|
value: "false"
|
|
- name: ALERT_AFTER
|
|
value: 48h
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /data
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: ncore-hnr-data
|