78 lines
1.7 KiB
YAML
78 lines
1.7 KiB
YAML
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: hermers
|
|
namespace: hermers
|
|
spec:
|
|
strategy:
|
|
type: Recreate
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: hermers
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: hermers
|
|
spec:
|
|
volumes:
|
|
- name: data
|
|
hostPath:
|
|
path: /data/hermers
|
|
type: DirectoryOrCreate
|
|
containers:
|
|
- name: gateway
|
|
#image: cr.wetofu.me/nousresearch/hermes-agent:v2026.5.16
|
|
image: image
|
|
ports:
|
|
- containerPort: 8642
|
|
name: gateway
|
|
args:
|
|
- gateway
|
|
- run
|
|
env:
|
|
- name: TZ
|
|
value: "Asia/Shanghai"
|
|
- name: API_SERVER_ENABLED
|
|
value: "true"
|
|
- name: API_SERVER_HOST
|
|
value: "[::]"
|
|
- name: API_SERVER_CORS_ORIGINS
|
|
value: '*'
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /opt/data
|
|
resources:
|
|
requests:
|
|
memory: "1Gi"
|
|
cpu: "500m"
|
|
limits:
|
|
memory: "4Gi"
|
|
cpu: "2"
|
|
- name: dashboard
|
|
image: image
|
|
args:
|
|
- dashboard
|
|
ports:
|
|
- containerPort: 9119
|
|
name: dashboard
|
|
env:
|
|
- name: TZ
|
|
value: Asia/Shanghai
|
|
- name: GATEWAY_HEALTH_URL
|
|
value: localhost:8642
|
|
- name: GATEWAY_HEALTH_TIMEOUT
|
|
value: "3"
|
|
- name: HERMES_DASHBOARD_HOST
|
|
value: "[::]"
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /opt/data
|
|
readOnly: true
|
|
resources:
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "500m" |