Skip to content

Commit 60a24c7

Browse files
committed
add deploy
Signed-off-by: KunWuLuan <30817980+KunWuLuan@users.noreply.github.com>
1 parent 374c1d4 commit 60a24c7

1 file changed

Lines changed: 24 additions & 8 deletions

File tree

agentic/proxyserver/deploy.yaml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ apiVersion: v1
2424
kind: ConfigMap
2525
metadata:
2626
name: llm-proxy-config
27-
namespace: llm-proxy
27+
namespace: default
2828
labels: &labels
2929
app.kubernetes.io/name: llm-proxy-server
3030
app.kubernetes.io/component: proxy
@@ -42,8 +42,7 @@ apiVersion: apps/v1
4242
kind: Deployment
4343
metadata:
4444
name: llm-proxy-server
45-
namespace: llm-proxy
46-
labels: *labels
45+
namespace: default
4746
spec:
4847
replicas: 1
4948
selector:
@@ -65,6 +64,27 @@ spec:
6564
- name: proxy
6665
image: llm-proxy-server:latest
6766
imagePullPolicy: IfNotPresent
67+
env:
68+
- name: PROXY_HOST
69+
valueFrom:
70+
configMapKeyRef:
71+
name: llm-proxy-config
72+
key: PROXY_HOST
73+
- name: PROXY_PORT
74+
valueFrom:
75+
configMapKeyRef:
76+
name: llm-proxy-config
77+
key: PROXY_PORT
78+
- name: RELAY_TIMEOUT
79+
valueFrom:
80+
configMapKeyRef:
81+
name: llm-proxy-config
82+
key: RELAY_TIMEOUT
83+
- name: LOG_LEVEL
84+
valueFrom:
85+
configMapKeyRef:
86+
name: llm-proxy-config
87+
key: LOG_LEVEL
6888
args:
6989
- "--host"
7090
- "$(PROXY_HOST)"
@@ -74,9 +94,6 @@ spec:
7494
- "$(RELAY_TIMEOUT)"
7595
- "--log-level"
7696
- "$(LOG_LEVEL)"
77-
envFrom:
78-
- configMapRef:
79-
name: llm-proxy-config
8097
ports:
8198
- name: http
8299
containerPort: 8080
@@ -111,8 +128,7 @@ apiVersion: v1
111128
kind: Service
112129
metadata:
113130
name: llm-proxy-server
114-
namespace: llm-proxy
115-
labels: *labels
131+
namespace: default
116132
spec:
117133
type: ClusterIP
118134
selector:

0 commit comments

Comments
 (0)