Add CICD
This commit is contained in:
70
k8s/base/deployment.yaml
Normal file
70
k8s/base/deployment.yaml
Normal 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
|
||||
Reference in New Issue
Block a user