-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathnode-template.yaml
63 lines (62 loc) · 1.7 KB
/
node-template.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
52
53
54
55
56
57
58
59
60
61
62
apiVersion: machinelearning.seldon.io/v1
kind: SeldonDeployment
metadata:
name: router
spec:
protocol: v2
name: router
annotations:
proxy.istio.io/config: |
terminationDrainDuration: {{ distrpution_time }}s
predictors:
- name: router
annotations:
seldon.io/no-engine: "true"
componentSpecs:
- spec:
terminationGracePeriodSeconds: {{ distrpution_time }}
# nodeSelector:
# router-node: "true"
containers:
- image: sdghafouri/router:router
name: router
imagePullPolicy: Always
resources:
requests:
cpu: '{{ cpu_request }}'
memory: '{{ memory_request }}'
limits:
cpu: '{{ cpu_limit }}'
memory: '{{ memory_limit }}'
env:
- name: MODEL_LISTS
value: '{{ model_lists }}'
# router should be multi-process to sustain througput
- name: MLSERVER_PARALLEL_WORKERS
value: "8"
- name: DROP_LIMIT
value: '{{drop_limit}}'
- name: LOGS_ENABLED
value: '{{ logs_enabled }}'
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 0
periodSeconds: 1
successThreshold: 1
tcpSocket:
port: 9000
timeoutSeconds: 1
lifecycle:
preStop:
exec:
command:
- /bin/sh
- -c
- /bin/sleep {{ distrpution_time }}
replicas: {{ replicas }}
graph:
name: router
type: MODEL
children: []
labels:
sidecar.istio.io/inject: "true"