-
Notifications
You must be signed in to change notification settings - Fork 122
/
worker-chromium.yaml
49 lines (48 loc) · 1.29 KB
/
worker-chromium.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: nativelink-worker-chromium
spec:
replicas: 3
selector:
matchLabels:
app: nativelink-worker-chromium
template:
metadata:
labels:
app: nativelink-worker-chromium
spec:
initContainers:
- name: nativelink-worker-init
# This image will be edited by kustomize.
image: nativelink-worker-init
args: ["/shared/nativelink"]
volumeMounts:
- name: shared
mountPath: /shared
containers:
- name: nativelink-worker-chromium
# This image will be edited by kustomize.
image: nativelink-worker-chromium
env:
- name: RUST_LOG
value: info
- name: CAS_ENDPOINT
value: nativelink-cas
- name: SCHEDULER_ENDPOINT
value: nativelink-scheduler
volumeMounts:
- name: worker-config
mountPath: /worker.json
subPath: worker.json
- name: shared
mountPath: /shared
command: ["/shared/nativelink"]
args: ["/worker.json"]
volumes:
- name: shared
emptyDir: {}
- name: worker-config
configMap:
name: worker