feat: readiness sentinel for Kubernetes

entrypoint.sh creates /home/agent/vol/.openclaw-initializing at startup
and removes it just before launching the gateway. Pod is not marked
ready until init (volume copy + config baking) is fully complete.

deployment.yaml adds readinessProbe: exec test ! -f sentinel,
with initialDelaySeconds=5, periodSeconds=5, failureThreshold=60
(5 minute window for slow storage on first deploy).
This commit is contained in:
Falkan
2026-03-26 22:29:47 -04:00
parent 1bdb48f04b
commit 7f32181ebe
2 changed files with 17 additions and 0 deletions

View File

@@ -64,6 +64,13 @@ spec:
- name: vol
mountPath: /home/agent/vol
readinessProbe:
exec:
command: ["test", "!", "-f", "/home/agent/vol/.openclaw-initializing"]
initialDelaySeconds: 5
periodSeconds: 5
failureThreshold: 60
env:
# ── Required ────────────────────────────────────────────