Files
easyai-deploy/k8s/base/agent-memory.yaml
T
2026-07-09 19:29:46 +08:00

83 lines
1.9 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: agent-memory
labels:
app.kubernetes.io/name: agent-memory
spec:
replicas: 2
revisionHistoryLimit: 3
selector:
matchLabels:
app.kubernetes.io/name: agent-memory
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
metadata:
labels:
app.kubernetes.io/name: agent-memory
spec:
serviceAccountName: easyai-workload
terminationGracePeriodSeconds: 45
containers:
- name: agent-memory
image: registry.cn-shanghai.aliyuncs.com/easyaigc/agent-memory:latest
imagePullPolicy: Always
ports:
- name: http
containerPort: 3004
- name: tcp
containerPort: 4004
envFrom:
- configMapRef:
name: easyai-app-config
- secretRef:
name: easyai-app-secret
env:
- name: MEMORY_AI_BASE_URL
value: http://easyai-server:3001
readinessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 6
livenessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 60
periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 3
resources:
requests:
cpu: 200m
memory: 256Mi
limits:
cpu: "1"
memory: 512Mi
---
apiVersion: v1
kind: Service
metadata:
name: agent-memory
labels:
app.kubernetes.io/name: agent-memory
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: agent-memory
ports:
- name: http
port: 3004
targetPort: http
- name: tcp
port: 4004
targetPort: tcp