forked from stsan9/AnomalyDetection4Jets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanomaly-graph-job.yml
60 lines (60 loc) · 1.48 KB
/
anomaly-graph-job.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
apiVersion: batch/v1
kind: Job
metadata:
name: anomaly-graph-job-bb0
labels:
jobgroup: anomaly-graph-job
spec:
template:
spec:
priorityClassName: nice
containers:
- name: postprocessing
image: gitlab-registry.nautilus.optiputer.net/stsan9/anomalydetection4jets:latest
command:
- "python"
args:
- "/opt/repo/AnomalyDetection4Jets/code/graph_data.py"
- --dataset
- "/anomalyvol/data/bb_train_sets/bb0"
- --n-proc
- "10"
- --bb
- "0"
- --n-events-merge
- "10000"
volumeMounts:
- mountPath: /anomalyvol
name: anomalyvol-2
- name: git-repo
mountPath: /opt/repo
resources:
limits:
memory: 64Gi
cpu: "10"
#nvidia.com/gpu: "1"
requests:
memory: 32Gi
cpu: "10"
#nvidia.com/gpu: "1"
initContainers:
- name: init-clone-repo
image: alpine/git
args:
- clone
- --single-branch
- https://github.com/stsan9/AnomalyDetection4Jets
- -b
- master
- /opt/repo/AnomalyDetection4Jets
volumeMounts:
- name: git-repo
mountPath: /opt/repo
volumes:
- name: git-repo
emptyDir: {}
- name: anomalyvol-2
persistentVolumeClaim:
claimName: anomalyvol-2
restartPolicy: Never
backoffLimit: 5