init
This commit is contained in:
36
k8s/cronjob.yaml
Normal file
36
k8s/cronjob.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
||||
Reference in New Issue
Block a user