-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcronjob.yaml
31 lines (31 loc) · 841 Bytes
/
cronjob.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: luigi-example
spec:
schedule: "0 7-16 * * *"
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
startingDeadlineSeconds: 300
jobTemplate:
spec:
parallelism: 1
template:
metadata:
labels:
app: luigi-example
spec:
containers:
- name: luigi-example
resources:
limits:
memory: 900Mi
requests:
cpu: 100m
memory: 900Mi
image: chhantyal/luigi-example:1.5
command: ["pipenv"]
args: ["run", "python", "-m", "luigi", "--module", "example", "RangeDaily", "--of", "SalesReport", "--start=2019-07-10"]
restartPolicy: Never
backoffLimit: 2