-
Notifications
You must be signed in to change notification settings - Fork 7
/
cronjob.yaml
32 lines (32 loc) · 922 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
32
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: smokeynet
spec:
schedule: "*/2 * * * *"
jobTemplate:
spec:
template:
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: resource.gpu
operator: In
values:
- "true"
containers:
- name: smokeynet
image: registry.sagecontinuum.org/iperezx/wildfire-smoke-detection:0.4.0
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: "1"
memory: "2G"
limits:
cpu: "1"
memory: "2G"
args: ["http://hpwren.ucsd.edu/cameras/L/tje-1-mobo-c.jpg"]
restartPolicy: OnFailure