-
Notifications
You must be signed in to change notification settings - Fork 0
/
pod.yaml
37 lines (37 loc) · 945 Bytes
/
pod.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
apiVersion: v1
kind: Pod
metadata:
name: gke-puppeteer-webgl
spec:
# This example has only been tested with a T4 GPU but it may work with others.
nodeSelector:
cloud.google.com/gke-accelerator: nvidia-tesla-t4
tolerations:
- key: "nvidia.com/gpu"
operator: "Equal"
value: "present"
effect: "NoSchedule"
containers:
- name: gke-puppeteer-webgl
image: ghcr.io/geomagical/gke-puppeteer-webgl:example-app
volumeMounts:
- name: nvidia-debug-tools
mountPath: /usr/local/nvidia/bin
- name: nvidia-libraries
mountPath: /usr/local/nvidia/lib64
resources:
requests:
memory: 4G
cpu: 1000m
limits:
memory: 4G
nvidia.com/gpu: "1"
ports:
- containerPort: 3000
volumes:
- name: nvidia-debug-tools
hostPath:
path: /home/kubernetes/bin/nvidia/bin
- name: nvidia-libraries
hostPath:
path: /home/kubernetes/bin/nvidia/lib64