mcp-proxy 更新
This commit is contained in:
+18
-1
@@ -18,6 +18,9 @@ spec:
|
||||
- name: tmp
|
||||
emptyDir:
|
||||
medium: Memory
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: mcp-proxy
|
||||
containers:
|
||||
- name: mcp-proxy
|
||||
image: image
|
||||
@@ -36,6 +39,8 @@ spec:
|
||||
env:
|
||||
- name: NPM_CONFIG_REGISTRY
|
||||
value: https://registry.npmmirror.com/
|
||||
- name: UV_INDEX_URL
|
||||
value: https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
volumeMounts:
|
||||
- mountPath: /config.json
|
||||
name: config
|
||||
@@ -43,11 +48,23 @@ spec:
|
||||
- mountPath: /start.sh
|
||||
name: config
|
||||
subPath: start.sh
|
||||
- mountPath: /root/.npm
|
||||
name: data
|
||||
subPath: .npm
|
||||
- mountPath: /root/.cache
|
||||
name: data
|
||||
subPath: .cache
|
||||
- mountPath: /root/.local
|
||||
name: data
|
||||
subPath: .local
|
||||
- mountPath: /root/.config
|
||||
name: data
|
||||
subPath: .config
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
port: 8080
|
||||
path: /status
|
||||
initialDelaySeconds: 60
|
||||
initialDelaySeconds: 300
|
||||
periodSeconds: 10
|
||||
successThreshold: 1
|
||||
failureThreshold: 3
|
||||
|
||||
@@ -6,6 +6,7 @@ replicas:
|
||||
resources:
|
||||
- deploy.yaml
|
||||
- service.yaml
|
||||
- pvc.yaml
|
||||
configMapGenerator:
|
||||
- name: mcp-proxy
|
||||
files:
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: mcp-proxy
|
||||
spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
+2
-1
@@ -1,11 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
|
||||
apk add --no-cache npm
|
||||
apk add --no-cache npm uv
|
||||
|
||||
which node
|
||||
which npm
|
||||
which npx
|
||||
which uvx
|
||||
|
||||
catatonit -- mcp-proxy \
|
||||
--named-server-config /config.json \
|
||||
|
||||
Reference in New Issue
Block a user