-
Notifications
You must be signed in to change notification settings - Fork 0
/
job.yaml
62 lines (62 loc) · 1.63 KB
/
job.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
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
61
62
apiVersion: batch/v1
kind: Job # Deployment will automatically restart when killed. Use Pod if not needed
metadata:
labels:
k8s-app: research
generateName: pt
namespace: ecepxie
name: pt
spec:
template:
metadata:
labels:
k8s-app: research
spec:
restartPolicy: Never
containers:
- name: research
image: gitlab-registry.nautilus.optiputer.net/vamsirk/research-containers
imagePullPolicy: Always
workingDir: /ceph/darts
command: ["/bin/bash","run_darts.sh"]
resources:
requests:
memory: "32Gi"
cpu: "4"
nvidia.com/gpu: 1
limits:
memory: "32Gi"
cpu: "4"
nvidia.com/gpu: 1
volumeMounts:
# - mountPath: /dev/shm
# name: dshm
- mountPath: /ceph
name: kunlin-volume
# volumes:
# - name: dshm
# emptyDir:
# medium: Memory
# - name: ceph
# flexVolume:
# driver: ceph.rook.io/rook
# fsType: ceph
# options:
# clusterNamespace: rook
# fsName: nautilusfs
# path: /ecepxie
# mountUser: ecepxie
# mountSecret: ceph-fs-secret
volumes:
- name: kunlin-volume
persistentVolumeClaim:
claimName: kunlin-volume
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: gpu-type
operator: In # Use NotIn for other types
values:
- 1080Ti