-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtutorial__cronjob.yml
More file actions
33 lines (33 loc) · 953 Bytes
/
Copy pathtutorial__cronjob.yml
File metadata and controls
33 lines (33 loc) · 953 Bytes
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
32
33
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: hello
spec:
schedule: "*/10 * * * *"
jobTemplate:
spec:
template:
spec:
serviceAccountName: sa-runner
containers:
- name: hello
image: mydags:latest
imagePullPolicy: IfNotPresent
command:
- /bin/sh
- -c
- python3 -m kubedag.run tutorial DUMMY_FIRST_TASK
env:
- name: AIRFLOW__CORE__SQL_ALCHEMY_CONN
value: postgresql+psycopg2://airflow:airflow@airflow-db/airflow
volumeMounts:
- name: graph-data
mountPath: /app/graph/
restartPolicy: OnFailure
volumes:
- name: graph-data
configMap:
name: kubedag-graph # todo - needs uniqueness
items:
- key: graph.json
path: graph.json