From 2a9a7e3f3f0c77fe556bf682be8395d2b8aa2e1f Mon Sep 17 00:00:00 2001 From: sirius0xdev Date: Fri, 8 May 2026 01:04:29 +0000 Subject: [PATCH] fix deployment --- apps/base/customer1/hermes-agent/deployment.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/base/customer1/hermes-agent/deployment.yaml b/apps/base/customer1/hermes-agent/deployment.yaml index 7da4c85..7dac24d 100644 --- a/apps/base/customer1/hermes-agent/deployment.yaml +++ b/apps/base/customer1/hermes-agent/deployment.yaml @@ -83,9 +83,14 @@ spec: args: - | - - # Copy config - cp -f /tmp/hermes/config.yaml /opt/hermes/.config/config.yaml + + # 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 + cp -f /etc/hermes/config.yaml /opt/data/config.yaml || true + echo "Hermes Agent starting (Telegram polling + full config persistence)..." + exec hermes gateway run + env: - name: TELEGRAM_BOT_TOKEN @@ -132,7 +137,7 @@ spec: # value: "INFO" volumeMounts: - name: hermes-data - mountPath: /opt/hermes/.hermes + mountPath: /opt/data - name: hermes-configmap mountPath: /tmp/hermes/config.yaml subPath: config.yaml