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:
|
||||
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
|
||||
Loading…
Add table
Reference in a new issue