Update deployment.yaml
This commit is contained in:
parent
eac576db58
commit
3ff531dc6e
1 changed files with 27 additions and 13 deletions
|
|
@ -15,23 +15,37 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: hermes-agent
|
- name: hermes-agent
|
||||||
image: nousresearch/hermes-agent
|
image: nousresearch/hermes-agent:latest
|
||||||
command: ["/bin/bash", "-c"]
|
command: ["/bin/bash", "-c"]
|
||||||
|
|
||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
apt-get update && apt-get install -y curl git build-essential
|
# Make `hermes` CLI instantly available when you exec in
|
||||||
export PATH="//.local/bin:$PATH"
|
ln -sf /opt/hermes/.venv/bin/hermes /usr/local/bin/hermes 2>/dev/null || true
|
||||||
if [ ! -f /root/.local/bin/hermes ]; then
|
echo "Hermes Agent starting (Telegram polling + full config persistence)..."
|
||||||
echo "Installing Hermes Agent..."
|
exec hermes gateway run
|
||||||
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
|
env:
|
||||||
fi
|
# === Hermes Home - REQUIRED for config persistence ===
|
||||||
echo "Hermes Agent installed. Starting gateway..."
|
- name: HERMES_HOME
|
||||||
# Wait for user to setup gateway via exec, or start it if already configured
|
value: "/opt/data"
|
||||||
hermes gateway start || tail -f /dev/null
|
|
||||||
|
# === 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:
|
volumeMounts:
|
||||||
- name: hermes-data
|
- name: hermes-data
|
||||||
mountPath: ~/.hermes/opt/data
|
mountPath: /opt/data
|
||||||
volumes:
|
volumes:
|
||||||
- name: hermes-data
|
- name: hermes-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue