78 lines
1.8 KiB
YAML
78 lines
1.8 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: mcp-proxy
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: mcp-proxy
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: mcp-proxy
|
|
spec:
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: mcp-proxy
|
|
- name: tmp
|
|
emptyDir:
|
|
medium: Memory
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: mcp-proxy
|
|
containers:
|
|
- name: mcp-proxy
|
|
image: image
|
|
resources:
|
|
limits:
|
|
memory: "1Gi"
|
|
cpu: "1Gi"
|
|
requests:
|
|
memory: "512Mi"
|
|
cpu: "250m"
|
|
ports:
|
|
- containerPort: 8080
|
|
command:
|
|
- /bin/sh
|
|
- /start.sh
|
|
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
|
|
subPath: config.json
|
|
- 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: 300
|
|
periodSeconds: 10
|
|
successThreshold: 1
|
|
failureThreshold: 3
|
|
timeoutSeconds: 5
|
|
readinessProbe:
|
|
httpGet:
|
|
port: 8080
|
|
path: /status
|
|
periodSeconds: 3
|
|
successThreshold: 1
|
|
timeoutSeconds: 5 |