2026-04-20 19:20:15 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: hermes-agent
|
|
|
|
|
namespace: customer1
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: hermes-agent
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: hermes-agent
|
2026-05-08 01:15:00 +00:00
|
|
|
spec:
|
2026-04-20 19:20:15 +00:00
|
|
|
containers:
|
|
|
|
|
- name: hermes-agent
|
2026-05-06 19:56:22 +00:00
|
|
|
securityContext:
|
2026-05-07 14:52:13 +00:00
|
|
|
runAsNonRoot: true
|
2026-05-08 00:37:53 +00:00
|
|
|
runAsUser: 10000
|
|
|
|
|
runAsGroup: 10000
|
|
|
|
|
allowPrivilegeEscalation: true
|
2026-05-07 14:52:13 +00:00
|
|
|
readOnlyRootFilesystem: false
|
2026-05-06 19:56:22 +00:00
|
|
|
seccompProfile:
|
|
|
|
|
type: RuntimeDefault
|
2026-04-25 11:25:23 -04:00
|
|
|
image: nousresearch/hermes-agent:latest
|
2026-05-08 00:07:16 +00:00
|
|
|
ports:
|
2026-05-08 00:13:03 +00:00
|
|
|
- containerPort: 8642
|
2026-04-20 19:20:15 +00:00
|
|
|
command: ["/bin/bash", "-c"]
|
2026-05-08 00:07:16 +00:00
|
|
|
|
2026-04-20 19:20:15 +00:00
|
|
|
args:
|
|
|
|
|
- |
|
2026-05-08 01:15:00 +00:00
|
|
|
mkdir /tmp/hermes
|
2026-05-08 01:04:29 +00:00
|
|
|
# Make `hermes` CLI instantly available when you exec in
|
|
|
|
|
ln -sf /opt/hermes/.venv/bin/hermes /usr/local/bin/hermes 2>/dev/null || true
|
|
|
|
|
# Copy config from ConfigMap (read-only mount) into PVC so Hermes can modify it
|
2026-05-08 01:15:00 +00:00
|
|
|
cp -f /tmp/hermes/config.yaml /opt/data/config.yaml || true
|
2026-05-08 01:04:29 +00:00
|
|
|
echo "Hermes Agent starting (Telegram polling + full config persistence)..."
|
|
|
|
|
exec hermes gateway run
|
|
|
|
|
|
2026-05-06 16:43:30 -04:00
|
|
|
|
2026-04-25 11:25:23 -04:00
|
|
|
env:
|
2026-05-08 01:15:00 +00:00
|
|
|
- name: HERMES_HOME
|
|
|
|
|
value: "/opt/data"
|
|
|
|
|
|
2026-04-25 11:25:23 -04:00
|
|
|
- name: TELEGRAM_BOT_TOKEN
|
2026-04-25 21:02:14 +00:00
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: hermes-secrets
|
2026-04-25 21:11:57 +00:00
|
|
|
key: TELEGRAM_BOT_TOKEN
|
2026-05-08 01:15:00 +00:00
|
|
|
|
2026-04-25 21:02:14 +00:00
|
|
|
- name: XAI_API_KEY
|
2026-05-06 16:15:06 -04:00
|
|
|
valueFrom:
|
2026-04-25 21:02:14 +00:00
|
|
|
secretKeyRef:
|
|
|
|
|
name: xai-apikey
|
|
|
|
|
key: XAI_API_KEY
|
|
|
|
|
|
2026-04-25 11:25:23 -04:00
|
|
|
- name: TELEGRAM_ALLOWED_USERS
|
2026-04-25 21:02:14 +00:00
|
|
|
value: "7528130947"
|
2026-04-25 11:25:23 -04:00
|
|
|
|
|
|
|
|
# === Local vLLM (OpenAI-compatible) ===
|
|
|
|
|
- name: OPENAI_BASE_URL
|
2026-04-25 21:02:14 +00:00
|
|
|
value: "http://openclaw-brain-service.customer1.svc.cluster.local:8000/v1" # ← adjust if your service name differs
|
|
|
|
|
|
2026-04-25 21:26:54 +00:00
|
|
|
- name: HERMES_MODEL_PROVIDER
|
|
|
|
|
value: xai
|
|
|
|
|
|
2026-04-25 23:23:48 +00:00
|
|
|
- name: HERMES_MODEL
|
2026-05-07 14:52:13 +00:00
|
|
|
value: grok-4.20-0309-reasoning
|
2026-04-25 23:23:48 +00:00
|
|
|
|
2026-04-25 11:25:23 -04:00
|
|
|
- name: OPENAI_API_KEY
|
|
|
|
|
value: "dummy" # vLLM ignores this
|
|
|
|
|
|
2026-05-06 19:25:28 +00:00
|
|
|
# === API Server (for external OpenAI-compatible clients) ===
|
2026-05-06 15:36:27 +00:00
|
|
|
- name: API_SERVER_ENABLED
|
|
|
|
|
value: "true"
|
|
|
|
|
- name: API_SERVER_HOST
|
|
|
|
|
value: "0.0.0.0"
|
|
|
|
|
- name: API_SERVER_PORT
|
|
|
|
|
value: "8642"
|
|
|
|
|
- name: API_SERVER_KEY
|
2026-05-08 00:19:50 +00:00
|
|
|
value: "change-me-make-me-secret" #(tailnet-only, private)
|
2026-05-06 15:36:27 +00:00
|
|
|
- name: API_SERVER_MODEL_NAME
|
|
|
|
|
value: "hermes-agent"
|
|
|
|
|
|
2026-04-25 11:25:23 -04:00
|
|
|
# === Optional ===
|
|
|
|
|
# - name: LOG_LEVEL
|
|
|
|
|
# value: "INFO"
|
2026-04-20 19:20:15 +00:00
|
|
|
volumeMounts:
|
|
|
|
|
- name: hermes-data
|
2026-05-08 01:04:29 +00:00
|
|
|
mountPath: /opt/data
|
2026-05-06 03:07:30 +00:00
|
|
|
- name: hermes-configmap
|
2026-05-07 10:00:49 -04:00
|
|
|
mountPath: /tmp/hermes/config.yaml
|
2026-04-29 04:45:18 +00:00
|
|
|
subPath: config.yaml
|
2026-05-06 03:07:30 +00:00
|
|
|
readOnly: true
|
2026-05-08 00:07:16 +00:00
|
|
|
|
2026-04-29 09:22:34 -04:00
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
memory: 2Gi
|
|
|
|
|
cpu: "1"
|
|
|
|
|
limits:
|
2026-05-08 00:07:16 +00:00
|
|
|
memory: 3Gi
|
2026-04-29 12:59:21 -04:00
|
|
|
cpu: "2"
|
2026-05-07 09:58:43 -04:00
|
|
|
|
2026-05-06 19:25:28 +00:00
|
|
|
- name: hermes-webui
|
|
|
|
|
image: ghcr.io/nesquena/hermes-webui:latest
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 8787
|
2026-05-08 00:07:16 +00:00
|
|
|
|
2026-05-06 19:25:28 +00:00
|
|
|
env:
|
|
|
|
|
- name: HERMES_HOME
|
|
|
|
|
value: "/home/hermeswebui/.hermes"
|
2026-05-07 15:07:30 -04:00
|
|
|
- name: HERMES_WEBUI_AGENT_DIR
|
2026-05-08 00:07:16 +00:00
|
|
|
value: "/home/hermeswebui/.hermes/bin"
|
2026-05-06 19:25:28 +00:00
|
|
|
- name: HERMES_WEBUI_HOST
|
|
|
|
|
value: "0.0.0.0"
|
|
|
|
|
- name: HERMES_WEBUI_PORT
|
|
|
|
|
value: "8787"
|
|
|
|
|
- name: HERMES_WEBUI_STATE_DIR
|
|
|
|
|
value: "/home/hermeswebui/.hermes/webui"
|
|
|
|
|
- name: WANTED_UID
|
2026-05-07 12:43:55 -04:00
|
|
|
value: "1024"
|
2026-05-06 19:25:28 +00:00
|
|
|
- name: WANTED_GID
|
2026-05-07 13:45:44 -04:00
|
|
|
value: "1000"
|
2026-05-08 00:07:16 +00:00
|
|
|
|
2026-05-06 19:25:28 +00:00
|
|
|
volumeMounts:
|
|
|
|
|
- name: hermes-data
|
|
|
|
|
mountPath: /home/hermeswebui/.hermes
|
2026-05-08 00:07:16 +00:00
|
|
|
- name: hermes-workspace
|
|
|
|
|
mountPath: /home/hermeswebui/workspace
|
|
|
|
|
|
2026-05-06 19:25:28 +00:00
|
|
|
resources:
|
|
|
|
|
requests:
|
2026-05-08 00:07:16 +00:00
|
|
|
memory: 500Mi
|
2026-05-06 19:25:28 +00:00
|
|
|
cpu: "100m"
|
|
|
|
|
limits:
|
2026-05-08 00:07:16 +00:00
|
|
|
memory: 1Gi
|
2026-05-06 19:25:28 +00:00
|
|
|
cpu: "500m"
|
2026-05-08 00:07:16 +00:00
|
|
|
|
2026-05-06 19:25:28 +00:00
|
|
|
securityContext:
|
2026-05-07 12:14:57 -04:00
|
|
|
|
2026-05-07 13:23:15 -04:00
|
|
|
runAsUser: 1024
|
2026-05-07 13:45:44 -04:00
|
|
|
runAsGroup: 1000
|
2026-05-07 12:26:26 -04:00
|
|
|
runAsNonRoot: false
|
2026-05-07 12:52:36 -04:00
|
|
|
allowPrivilegeEscalation: true
|
2026-05-07 14:52:13 +00:00
|
|
|
readOnlyRootFilesystem: false
|
2026-05-06 19:25:28 +00:00
|
|
|
seccompProfile:
|
|
|
|
|
type: RuntimeDefault
|
2026-05-08 00:37:53 +00:00
|
|
|
|
2026-04-20 19:20:15 +00:00
|
|
|
volumes:
|
2026-05-06 03:07:30 +00:00
|
|
|
- name: hermes-configmap
|
2026-04-29 04:45:18 +00:00
|
|
|
configMap:
|
|
|
|
|
name: hermes-config
|
2026-05-08 00:07:16 +00:00
|
|
|
|
2026-04-20 19:20:15 +00:00
|
|
|
- name: hermes-data
|
|
|
|
|
persistentVolumeClaim:
|
2026-05-05 22:46:15 -04:00
|
|
|
claimName: hermes-agent-pvc
|
2026-05-08 00:13:03 +00:00
|
|
|
|
2026-05-08 00:07:16 +00:00
|
|
|
- name: hermes-workspace
|
2026-05-08 00:13:03 +00:00
|
|
|
emptyDir: {}
|
2026-05-08 00:07:16 +00:00
|
|
|
|
2026-05-07 13:55:01 -04:00
|
|
|
|
2026-04-20 19:20:15 +00:00
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
|
metadata:
|
2026-05-05 22:46:15 -04:00
|
|
|
name: hermes-agent-pvc
|
2026-04-20 19:20:15 +00:00
|
|
|
namespace: customer1
|
|
|
|
|
spec:
|
|
|
|
|
accessModes:
|
|
|
|
|
- ReadWriteOnce
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
2026-05-07 23:21:56 +00:00
|
|
|
storage: 25Gi
|