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