From 04bc284fed147983a47ef60ed5d3ade3e5ee0361 Mon Sep 17 00:00:00 2001 From: Clawdbot Date: Fri, 30 Jan 2026 11:30:24 +0000 Subject: [PATCH] debug: run sleep infinity (remove init + gateway) for interactive inspection --- manifests/deployment.yaml | 42 +++++---------------------------------- 1 file changed, 5 insertions(+), 37 deletions(-) diff --git a/manifests/deployment.yaml b/manifests/deployment.yaml index 6c63c8e..32f39f3 100644 --- a/manifests/deployment.yaml +++ b/manifests/deployment.yaml @@ -17,47 +17,15 @@ spec: spec: serviceAccountName: openclaw - # First-run bootstrap: - # `openclaw` with no args just prints help and exits. - # We run a one-time, non-interactive initializer to create the state dir + config on the PVC. - initContainers: - - name: openclaw-setup - image: default-route-openshift-image-registry.apps.lab.apilab.us/openclaw/openclaw:latest - imagePullPolicy: Always - env: - - name: HOME - value: /home/node - - name: NPM_CONFIG_CACHE - value: /tmp/npm-cache - - name: XDG_CACHE_HOME - value: /tmp - command: ["/bin/sh","-lc"] - args: - - | - set -eu - mkdir -p /home/node - if [ ! -f /home/node/.openclaw/openclaw.json ]; then - echo "No openclaw config found; running 'openclaw setup'..." - openclaw setup - else - echo "openclaw config already present; skipping setup." - fi - volumeMounts: - - name: home - mountPath: /home/node - - name: tmp - mountPath: /tmp - + # Debug mode (early bring-up): keep the pod running so we can exec in. + # We'll switch back to `openclaw gateway ...` once we confirm where the binary lives + # and how first-run config should be initialized. containers: - name: openclaw image: default-route-openshift-image-registry.apps.lab.apilab.us/openclaw/openclaw:latest imagePullPolicy: Always - # Run the Gateway daemon in-cluster. - command: ["openclaw"] - args: ["gateway","--port","18789","--bind","0.0.0.0"] - ports: - - name: http - containerPort: 18789 + command: ["/bin/sh","-lc"] + args: ["sleep infinity"] env: - name: HOME value: /home/node