Skip to content

Commit 7eb352e

Browse files
Add Kubernetes deployment manifests
1 parent 09b7c9c commit 7eb352e

1 file changed

Lines changed: 78 additions & 0 deletions

File tree

k8s/deployment.yaml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: lmstudio-mcp
5+
labels:
6+
app: lmstudio-mcp
7+
version: v1
8+
spec:
9+
replicas: 1
10+
selector:
11+
matchLabels:
12+
app: lmstudio-mcp
13+
template:
14+
metadata:
15+
labels:
16+
app: lmstudio-mcp
17+
version: v1
18+
spec:
19+
hostNetwork: true # Required for LM Studio access on localhost
20+
containers:
21+
- name: lmstudio-mcp
22+
image: ghcr.io/infinitimeless/lmstudio-mcp:latest
23+
env:
24+
- name: LMSTUDIO_API_BASE
25+
value: "http://localhost:1234/v1"
26+
stdin: true
27+
tty: true
28+
resources:
29+
requests:
30+
memory: "128Mi"
31+
cpu: "100m"
32+
limits:
33+
memory: "512Mi"
34+
cpu: "500m"
35+
livenessProbe:
36+
exec:
37+
command:
38+
- python
39+
- -c
40+
- "import lmstudio_bridge; print('OK')"
41+
initialDelaySeconds: 30
42+
periodSeconds: 60
43+
readinessProbe:
44+
exec:
45+
command:
46+
- python
47+
- -c
48+
- "import lmstudio_bridge; print('OK')"
49+
initialDelaySeconds: 5
50+
periodSeconds: 10
51+
restartPolicy: Always
52+
---
53+
apiVersion: v1
54+
kind: Service
55+
metadata:
56+
name: lmstudio-mcp-service
57+
labels:
58+
app: lmstudio-mcp
59+
spec:
60+
type: ClusterIP
61+
ports:
62+
- port: 8000
63+
targetPort: 8000
64+
protocol: TCP
65+
name: http
66+
selector:
67+
app: lmstudio-mcp
68+
---
69+
apiVersion: v1
70+
kind: ConfigMap
71+
metadata:
72+
name: lmstudio-mcp-config
73+
labels:
74+
app: lmstudio-mcp
75+
data:
76+
LMSTUDIO_API_BASE: "http://localhost:1234/v1"
77+
LOG_LEVEL: "INFO"
78+
TIMEOUT: "30"

0 commit comments

Comments
 (0)