fix deployment
This commit is contained in:
parent
43b2c8919c
commit
1bbed97053
1 changed files with 4 additions and 2 deletions
|
|
@ -19,6 +19,7 @@ spec:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
runAsUser: 10000
|
runAsUser: 10000
|
||||||
runAsGroup: 10000
|
runAsGroup: 10000
|
||||||
|
fsGroup: 10000
|
||||||
allowPrivilegeEscalation: true
|
allowPrivilegeEscalation: true
|
||||||
readOnlyRootFilesystem: false
|
readOnlyRootFilesystem: false
|
||||||
seccompProfile:
|
seccompProfile:
|
||||||
|
|
@ -30,11 +31,12 @@ spec:
|
||||||
|
|
||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
mkdir /tmp/hermes
|
|
||||||
# Make `hermes` CLI instantly available when you exec in
|
# Make `hermes` CLI instantly available when you exec in
|
||||||
ln -sf /opt/hermes/.venv/bin/hermes /usr/local/bin/hermes 2>/dev/null || true
|
export PATH="/opt/hermes/.venv/bin:$PATH"
|
||||||
|
|
||||||
# Copy config from ConfigMap (read-only mount) into PVC so Hermes can modify it
|
# Copy config from ConfigMap (read-only mount) into PVC so Hermes can modify it
|
||||||
cp -f /tmp/hermes/config.yaml /opt/data/config.yaml || true
|
cp -f /tmp/hermes/config.yaml /opt/data/config.yaml || true
|
||||||
|
|
||||||
echo "Hermes Agent starting (Telegram polling + full config persistence)..."
|
echo "Hermes Agent starting (Telegram polling + full config persistence)..."
|
||||||
exec hermes gateway run
|
exec hermes gateway run
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue