-
Notifications
You must be signed in to change notification settings - Fork 115
/
Copy pathexample-gpu-deployment-nvidia-375-82.yaml
59 lines (59 loc) · 1.39 KB
/
example-gpu-deployment-nvidia-375-82.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
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: tf-jupyter
spec:
replicas: 1
template:
metadata:
labels:
app: tf-jupyter
spec:
volumes:
- name: nvidia-driver-375
hostPath:
path: /usr/lib/nvidia-375
- name: libcuda-so
hostPath:
path: /usr/lib/x86_64-linux-gnu/libcuda.so
- name: libcuda-so-1
hostPath:
path: /usr/lib/x86_64-linux-gnu/libcuda.so.1
- name: libcuda-so-375-82
hostPath:
path: /usr/lib/x86_64-linux-gnu/libcuda.so.375.82
containers:
- name: tensorflow
image: tensorflow/tensorflow:0.11.0rc0-gpu
ports:
- containerPort: 8888
resources:
limits:
alpha.kubernetes.io/nvidia-gpu: 1
volumeMounts:
- name: nvidia-driver-375
mountPath: /usr/local/nvidia
readOnly: true
- name: libcuda-so
mountPath: /usr/lib/x86_64-linux-gnu/libcuda.so
- name: libcuda-so-1
mountPath: /usr/lib/x86_64-linux-gnu/libcuda.so.1
- name: libcuda-so-375-82
mountPath: /usr/lib/x86_64-linux-gnu/libcuda.so.375.82
---
apiVersion: v1
kind: Service
metadata:
name: tf-jupyter-service
labels:
app: tf-jupyter
spec:
selector:
app: tf-jupyter
ports:
- port: 8888
protocol: TCP
nodePort: 30061
type: LoadBalancer
---