forked from llm-d/llm-d-router
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvllm-render.yaml
More file actions
76 lines (76 loc) · 1.76 KB
/
Copy pathvllm-render.yaml
File metadata and controls
76 lines (76 loc) · 1.76 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
apiVersion: apps/v1
kind: Deployment
metadata:
name: vllm-render
labels:
app: vllm-render
spec:
replicas: 1
selector:
matchLabels:
app: vllm-render
template:
metadata:
labels:
app: vllm-render
spec:
containers:
- name: vllm-render
image: ${VLLM_RENDER_IMAGE}
imagePullPolicy: IfNotPresent
command: ["vllm", "launch", "render"]
args: ["${MODEL_NAME}", "--port=${VLLM_RENDER_PORT}"]
# For gated models, inject HF_TOKEN via a Secret reference:
# env:
# - name: HF_TOKEN
# valueFrom:
# secretKeyRef:
# name: hf-token
# key: token
ports:
- name: render-http
containerPort: ${VLLM_RENDER_PORT}
startupProbe:
httpGet:
path: /health
port: ${VLLM_RENDER_PORT}
initialDelaySeconds: 2
periodSeconds: 1
failureThreshold: 600
timeoutSeconds: 1
livenessProbe:
httpGet:
path: /health
port: ${VLLM_RENDER_PORT}
periodSeconds: 10
failureThreshold: 5
timeoutSeconds: 1
readinessProbe:
httpGet:
path: /health
port: ${VLLM_RENDER_PORT}
periodSeconds: 5
failureThreshold: 1
timeoutSeconds: 1
volumeMounts:
- name: model-cache
mountPath: /root/.cache/huggingface
volumes:
- name: model-cache
emptyDir: {}
---
apiVersion: v1
kind: Service
metadata:
name: vllm-render
labels:
app: vllm-render
spec:
selector:
app: vllm-render
ports:
- name: http
protocol: TCP
port: ${VLLM_RENDER_PORT}
targetPort: ${VLLM_RENDER_PORT}
type: ClusterIP