Add CICD
Some checks failed
continuous-integration/drone Build is failing
Build and Release / build (push) Has been cancelled

This commit is contained in:
Yaojia Wang
2026-03-22 17:08:55 +01:00
parent b3e0efcc11
commit 4afe4aab1e
9 changed files with 232 additions and 0 deletions

70
k8s/base/deployment.yaml Normal file
View File

@@ -0,0 +1,70 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: xiaohongshu-mcp
namespace: xiaohongshu-mcp
labels:
app: xiaohongshu-mcp
spec:
replicas: 1
selector:
matchLabels:
app: xiaohongshu-mcp
template:
metadata:
labels:
app: xiaohongshu-mcp
spec:
containers:
- name: xiaohongshu-mcp
image: 192.168.68.11:30500/xiaohongshu-mcp:latest
imagePullPolicy: Always
ports:
- containerPort: 18060
protocol: TCP
env:
- name: ROD_BROWSER_BIN
value: "/usr/bin/google-chrome"
- name: COOKIES_PATH
value: "/app/data/cookies.json"
- name: TZ
value: "Asia/Shanghai"
resources:
requests:
cpu: 200m
memory: 512Mi
limits:
cpu: "1"
memory: 2Gi
volumeMounts:
- name: data
mountPath: /app/data
- name: images
mountPath: /app/images
- name: dshm
mountPath: /dev/shm
livenessProbe:
httpGet:
path: /health
port: 18060
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /health
port: 18060
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
volumes:
- name: data
persistentVolumeClaim:
claimName: xiaohongshu-mcp-data
- name: images
persistentVolumeClaim:
claimName: xiaohongshu-mcp-images
- name: dshm
emptyDir:
medium: Memory
sizeLimit: 256Mi