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: runAsUser: 10000 supplementalGroups: - 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 livenessProbe: httpGet: path: /health port: 8642 initialDelaySeconds: 30 periodSeconds: 10 successThreshold: 1 failureThreshold: 3 timeoutSeconds: 5 readinessProbe: httpGet: path: /health port: 8642 periodSeconds: 3 successThreshold: 1 timeoutSeconds: 5 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: "0.0.0.0" - 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"