Files
helm/hermes/deploy.yaml
T
2026-05-26 03:42:59 +00:00

115 lines
2.6 KiB
YAML

kind: Deployment
apiVersion: apps/v1
metadata:
name: hermes
namespace: hermes
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
app: hermes
template:
metadata:
labels:
app: hermes
spec:
securityContext:
fsGroup: 1000
volumes:
- name: data
hostPath:
path: /data/hermes
type: DirectoryOrCreate
- name: tools
hostPath:
path: /data/tools
type: DirectoryOrCreate
- name: projects
hostPath:
path: /data/code-server/coder
type: DirectoryOrCreate
- name: tmp
emptyDir: {}
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: '*'
envFrom:
- secretRef:
name: hermes
optional: true
- configMapRef:
name: hermes
volumeMounts:
- name: data
mountPath: /opt/data
- name: tools
mountPath: /opt/data/home/.local
subPath: .local
- name: tools
mountPath: /opt/data/home/.config
subPath: .config
- name: projects
mountPath: /opt/data/workspace/Projects
- name: tmp
mountPath: /tmp
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: "::"
envFrom:
- secretRef:
name: hermes
optional: true
- configMapRef:
name: hermes
volumeMounts:
- name: data
mountPath: /opt/data
- name: tmp
mountPath: /tmp
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"