-
Notifications
You must be signed in to change notification settings - Fork 127
/
Copy pathscheduler.yaml
51 lines (51 loc) · 1.09 KB
/
scheduler.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nativelink-scheduler
spec:
replicas: 1
selector:
matchLabels:
app: nativelink-scheduler
template:
metadata:
labels:
app: nativelink-scheduler
spec:
containers:
- name: nativelink-scheduler
image: "localhost:5001/nativelink:local"
env:
- name: RUST_LOG
value: info
- name: CAS_ENDPOINT
value: nativelink-cas
ports:
- containerPort: 50052
volumeMounts:
- name: scheduler-config
mountPath: /scheduler.json
subPath: scheduler.json
args: ["/scheduler.json"]
volumes:
- name: scheduler-config
configMap:
name: scheduler
---
apiVersion: v1
kind: Service
metadata:
name: nativelink-scheduler
spec:
selector:
app: nativelink-scheduler
ports:
- name: scheduler
protocol: TCP
port: 50052
targetPort: 50052
- name: worker-api
protocol: TCP
port: 50061
targetPort: 50061