-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathk8s-vasp-build.yaml
47 lines (41 loc) · 1.09 KB
/
k8s-vasp-build.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
apiVersion: batch/v1
kind: Job
metadata:
name: laikapack-vasp-build
spec:
template:
spec:
containers:
- name: main
image: ghcr.io/ulissigroup/vasp-interactive:build_env
command: ["bash", "build_all.sh"]
# Temporary working directory in the container
workingDir: /home/jovyan/shared-scratch/TT/vasp_builds
env:
- name: PASS
valueFrom:
secretKeyRef:
key: PASS
name: github-encrypt-key
optional: false
# Mount the vasp_cpu folder in your workspace onto /home
volumeMounts:
- mountPath: /home/jovyan/shared-scratch
name: vol1
# Ask for 8 cores, 16gb ram
resources:
limits:
cpu: "16"
memory: 8Gi
requests:
cpu: "16"
memory: 8Gi
restartPolicy: Never
volumes:
- name: vol1
persistentVolumeClaim:
claimName: shared-scratch
imagePullSecrets:
- name: ghcr
# Don't try more than 2 times to launch
backoffLimit: 2