forked from tensorflow/minigo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgpu-player.yaml
More file actions
55 lines (55 loc) · 1.54 KB
/
Copy pathgpu-player.yaml
File metadata and controls
55 lines (55 loc) · 1.54 KB
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
apiVersion: batch/v1
kind: Job
metadata:
name: minigo-gpu-player
spec:
parallelism: 11
completions: 200000
template:
metadata:
name: gpu-player
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: job-label
operator: In
values:
- minigo-gpu-player
topologyKey: kubernetes.io/hostname
containers:
- name: player
image: gcr.io/$PROJECT/minigo-gpu-player:0.10
imagePullPolicy: Always
resources:
limits:
alpha.kubernetes.io/nvidia-gpu: 1
volumeMounts:
- name: service-credentials
mountPath: /etc/credentials
- mountPath: /usr/local/bin/nvidia
name: nvidia-debug-tools
- mountPath: /usr/local/nvidia/lib64
name: nvidia-libraries
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/credentials/service-account.json
- name: BUCKET_NAME
value: $BUCKET_NAME
- name: BOARD_SIZE
value: "$BOARD_SIZE"
securityContext:
privileged: true
volumes:
- name: service-credentials
secret:
secretName: $SERVICE_ACCOUNT-creds
- hostPath:
path: /home/kubernetes/bin/nvidia/bin
name: nvidia-debug-tools
- hostPath:
path: /home/kubernetes/bin/nvidia/lib
name: nvidia-libraries
restartPolicy: OnFailure