fix deployment
This commit is contained in:
parent
8cbc00538e
commit
2a9a7e3f3f
1 changed files with 9 additions and 4 deletions
|
|
@ -83,9 +83,14 @@ spec:
|
||||||
|
|
||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
|
|
||||||
# Copy config
|
# Make `hermes` CLI instantly available when you exec in
|
||||||
cp -f /tmp/hermes/config.yaml /opt/hermes/.config/config.yaml
|
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:
|
env:
|
||||||
- name: TELEGRAM_BOT_TOKEN
|
- name: TELEGRAM_BOT_TOKEN
|
||||||
|
|
@ -132,7 +137,7 @@ spec:
|
||||||
# value: "INFO"
|
# value: "INFO"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: hermes-data
|
- name: hermes-data
|
||||||
mountPath: /opt/hermes/.hermes
|
mountPath: /opt/data
|
||||||
- name: hermes-configmap
|
- name: hermes-configmap
|
||||||
mountPath: /tmp/hermes/config.yaml
|
mountPath: /tmp/hermes/config.yaml
|
||||||
subPath: config.yaml
|
subPath: config.yaml
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue