generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathext-proc.yaml
68 lines (67 loc) · 1.37 KB
/
ext-proc.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
63
64
65
66
67
68
apiVersion: apps/v1
kind: Deployment
metadata:
name: grpc-server-deployment
labels:
app: grpc-server
spec:
replicas: 1
selector:
matchLabels:
app: grpc-server
template:
metadata:
labels:
app: grpc-server
spec:
containers:
- name: grpc-server
image: # Image built from the Dockerfile in ./ext-proc
args:
#TODO: specify label selector and dynamically update pods
- -pods
- "vllm-575d76dbfc-l4w5z"
- -podIPs
- "10.100.0.7:8000"
- -enable-fairness
- "true"
ports:
- containerPort: 9002
- name: curl
image: curlimages/curl
command: ["sleep", "3600"]
---
apiVersion: v1
kind: Service
metadata:
name: grpc-server-service
spec:
selector:
app: grpc-server
ports:
- protocol: TCP
port: 9002
targetPort: 9002
type: ClusterIP
#TODO: specify label selector and dynamically update pods
# ---
# kind: ClusterRole
# apiVersion: rbac.authorization.k8s.io/v1
# metadata:
# name: pod-read
# rules:
# - apiGroups: [""]
# resources: ["pods"]
# verbs: ["get", "watch", "list"]
# ---
# kind: ClusterRoleBinding
# apiVersion: rbac.authorization.k8s.io/v1
# metadata:
# name: pod-read-binding
# subjects:
# - kind: ServiceAccount
# name: default
# namespace: default
# roleRef:
# kind: ClusterRole
# name: pod-read