Repository navigation
Expand file tree
/
Copy pathgpu-player.yaml
More file actions
57 lines (57 loc) · 1.64 KB
/
Copy pathgpu-player.yaml
File metadata and controls
57 lines (57 loc) · 1.64 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
56
57
apiVersion: batch/v1
kind: Job
metadata:
name: minigo-gpu-player
spec:
parallelism: $NUM_K8S_NODES
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/$GPU_PLAYER_CONTAINER:$VERSION_TAG
imagePullPolicy: Always
resources:
limits:
beta.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"
- name: LD_LIBRARY_PATH
value: /usr/local/nvidia/lib64
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/lib64
name: nvidia-libraries
restartPolicy: OnFailure