From 3ff531dc6e8562dde7c6a944d0bd980348fb1a86 Mon Sep 17 00:00:00 2001 From: sirius0xdev Date: Sat, 25 Apr 2026 11:25:23 -0400 Subject: [PATCH] Update deployment.yaml --- .../customer1/hermes-agent/deployment.yaml | 40 +++++++++++++------ 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/apps/base/customer1/hermes-agent/deployment.yaml b/apps/base/customer1/hermes-agent/deployment.yaml index e745ae4..b03f6ef 100644 --- a/apps/base/customer1/hermes-agent/deployment.yaml +++ b/apps/base/customer1/hermes-agent/deployment.yaml @@ -15,23 +15,37 @@ spec: spec: containers: - name: hermes-agent - image: nousresearch/hermes-agent + image: nousresearch/hermes-agent:latest command: ["/bin/bash", "-c"] - args: - | - apt-get update && apt-get install -y curl git build-essential - export PATH="//.local/bin:$PATH" - if [ ! -f /root/.local/bin/hermes ]; then - echo "Installing Hermes Agent..." - curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash - fi - echo "Hermes Agent installed. Starting gateway..." - # Wait for user to setup gateway via exec, or start it if already configured - hermes gateway start || tail -f /dev/null + # 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 + value: "YOUR_TELEGRAM_BOT_TOKEN_HERE" # ← from @BotFather + - name: TELEGRAM_ALLOWED_USERS + value: "YOUR_TELEGRAM_USER_ID_HERE" # ← numeric ID from @userinfobot + + # === Local vLLM (OpenAI-compatible) === + - name: OPENAI_BASE_URL + value: "http://vllm-service.customer1.svc.cluster.local:8000/v1" # ← adjust if your service name differs + - name: OPENAI_API_KEY + value: "dummy" # vLLM ignores this + + # === Optional === + # - name: LOG_LEVEL + # value: "INFO" volumeMounts: - name: hermes-data - mountPath: ~/.hermes/opt/data + mountPath: /opt/data volumes: - name: hermes-data persistentVolumeClaim: @@ -47,4 +61,4 @@ spec: - ReadWriteOnce resources: requests: - storage: 5Gi + storage: 5Gi \ No newline at end of file