-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathcluster-play-deployment.yaml
49 lines (49 loc) · 1.23 KB
/
cluster-play-deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: chesscoach-play-deployment
spec:
replicas: 3
selector:
matchLabels:
app: chesscoach-play
strategy:
type: Recreate
template:
metadata:
annotations:
tf-version.cloud-tpus.google.com: "2.4.0"
labels:
app: chesscoach-play
spec:
restartPolicy: Always
hostNetwork: true
tolerations:
- key: dedicated
operator: Equal
value: preemptible
effect: NoSchedule
volumes:
- name: service-credentials
secret:
secretName: chesscoach-credentials
containers:
- name: chesscoach-play-container
image: gcr.io/chesscoach/chesscoach-play:selfplay3_v7
volumeMounts:
- name: service-credentials
mountPath: /var/secrets/google
readOnly: true
env:
- name: PYTHONUNBUFFERED
value: "1"
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
resources:
requests:
cpu: 3.7
memory: 28200Mi
cloud-tpus.google.com/v2: 8 # v2-8
ephemeral-storage: 4Gi
limits:
cloud-tpus.google.com/v2: 8 # v2-8