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
|
|
|
|
|
spec:
|
|
|
|
|
containers:
|
|
|
|
|
- name: hermes-agent
|
2026-04-25 11:25:23 -04:00
|
|
|
image: nousresearch/hermes-agent:latest
|
2026-04-20 19:20:15 +00:00
|
|
|
command: ["/bin/bash", "-c"]
|
|
|
|
|
args:
|
|
|
|
|
- |
|
2026-04-25 11:25:23 -04: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
|
|
|
|
|
echo "Hermes Agent starting (Telegram polling + full config persistence)..."
|
|
|
|
|
exec hermes gateway run
|
|
|
|
|
env:
|
|
|
|
|
# === Hermes Home - REQUIRED for config persistence ===
|
|
|
|
|
- name: HERMES_HOME
|
|
|
|
|
value: "/opt/data"
|
|
|
|
|
|
|
|
|
|
# === Telegram Configuration (polling only - no public exposure) ===
|
|
|
|
|
- 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-04-25 21:02:14 +00:00
|
|
|
- name: XAI_API_KEY
|
|
|
|
|
valuesFrom:
|
|
|
|
|
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-04-25 21:26:54 +00:00
|
|
|
value: grok-4.1-fast
|
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
|
|
|
|
|
|
|
|
|
|
# === Optional ===
|
|
|
|
|
# - name: LOG_LEVEL
|
|
|
|
|
# value: "INFO"
|
2026-04-20 19:20:15 +00:00
|
|
|
volumeMounts:
|
|
|
|
|
- name: hermes-data
|
2026-04-25 11:25:23 -04:00
|
|
|
mountPath: /opt/data
|
2026-04-29 04:45:18 +00:00
|
|
|
- name: hermes-config
|
|
|
|
|
mountPath: /opt/data/config.yaml
|
|
|
|
|
subPath: config.yaml
|
2026-04-29 09:22:34 -04:00
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
memory: 2Gi
|
|
|
|
|
cpu: "1"
|
|
|
|
|
limits:
|
|
|
|
|
memory: 6Gi
|
|
|
|
|
cpu: "4"
|
2026-04-20 19:20:15 +00:00
|
|
|
volumes:
|
2026-04-29 04:45:18 +00:00
|
|
|
- name: hermes-config
|
|
|
|
|
configMap:
|
|
|
|
|
name: hermes-config
|
2026-04-20 19:20:15 +00:00
|
|
|
- name: hermes-data
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: hermes-agent-pvc
|
|
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
|
metadata:
|
|
|
|
|
name: hermes-agent-pvc
|
|
|
|
|
namespace: customer1
|
|
|
|
|
spec:
|
|
|
|
|
accessModes:
|
|
|
|
|
- ReadWriteOnce
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
2026-04-28 23:16:51 +00:00
|
|
|
storage: 25Gi
|