update mem0 deployment yaml
This commit is contained in:
@@ -45,7 +45,94 @@ ccr.ccs.tencentyun.com/tei_agent/mem0:latest
|
||||
## 部署清单
|
||||
|
||||
```yaml
|
||||
# mem0 deployment + configmap + secret + service
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: mem0-env
|
||||
namespace: tei
|
||||
data:
|
||||
DATABASE_URL: "postgres://gitlab:gitlab@192.168.3.49:5432/mem0"
|
||||
APP_DB_NAME: "mem0_app"
|
||||
QDRANT_HOST: "qdrant"
|
||||
QDRANT_PORT: "6333"
|
||||
QDRANT_COLLECTION_NAME: "mem0"
|
||||
EMBEDDER_PROVIDER: "tei"
|
||||
TEI_ENDPOINT: "http://tei:8080"
|
||||
LLM_PROVIDER: "openai"
|
||||
OPENAI_API_KEY: "YOUR_MINIMAX_KEY"
|
||||
OPENAI_BASE_URL: "https://api.minimax.chat/v1"
|
||||
AUTH_DISABLED: "false"
|
||||
MEM0_TELEMETRY: "false"
|
||||
REQUEST_LOG_RETENTION_DAYS: "30"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: mem0-secrets
|
||||
namespace: tei
|
||||
type: Opaque
|
||||
stringData:
|
||||
JWT_SECRET: "your-jwt-secret-change-me"
|
||||
ADMIN_API_KEY: "your-admin-key-change-me"
|
||||
POSTGRES_PASSWORD: "gitlab"
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mem0
|
||||
namespace: tei
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mem0
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mem0
|
||||
spec:
|
||||
containers:
|
||||
- name: mem0
|
||||
image: ccr.ccs.tencentyun.com/tei_agent/mem0:latest
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
name: http
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: mem0-env
|
||||
- secretRef:
|
||||
name: mem0-secrets
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8000
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8000
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
resources:
|
||||
limits:
|
||||
cpu: "2"
|
||||
memory: "4Gi"
|
||||
requests:
|
||||
cpu: "500m"
|
||||
memory: "1Gi"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mem0
|
||||
namespace: tei
|
||||
spec:
|
||||
ports:
|
||||
- port: 8000
|
||||
name: http
|
||||
selector:
|
||||
app: mem0
|
||||
```
|
||||
|
||||
## 前置要求
|
||||
|
||||
Reference in New Issue
Block a user