-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathuc3-pod.yml
38 lines (38 loc) · 942 Bytes
/
uc3-pod.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
apiVersion: v1
kind: Pod
metadata:
name: unito-uc3
spec:
restartPolicy: Never
containers:
- name: dh
image: perlodaniele/dh-base:latest
env:
- name: WANDB_BASE_URL
valueFrom:
secretKeyRef:
name: my-wandb-auth #dummy references
key: host
- name: WANDB_API_KEY
valueFrom:
secretKeyRef:
name: my-wandb-auth
key: key
command: ["tail", "-f", "/dev/null"] #change with the commands you want to run
resources:
limits:
nvidia.com/gpu: 4
requests:
nvidia.com/gpu: 4
volumeMounts:
- name: uc3-data #this is just a local name
mountPath: /mnt/data
- name: shm
mountPath: /dev/shm
volumes:
- name: uc3-data
persistentVolumeClaim:
claimName: uc3-volume
- name: shm
emptyDir:
medium: Memory