debug: run sleep infinity (remove init + gateway) for interactive inspection

This commit is contained in:
Clawdbot
2026-01-30 11:30:24 +00:00
parent a66bad33e2
commit 04bc284fed

View File

@@ -17,47 +17,15 @@ spec:
spec: spec:
serviceAccountName: openclaw serviceAccountName: openclaw
# First-run bootstrap: # Debug mode (early bring-up): keep the pod running so we can exec in.
# `openclaw` with no args just prints help and exits. # We'll switch back to `openclaw gateway ...` once we confirm where the binary lives
# We run a one-time, non-interactive initializer to create the state dir + config on the PVC. # and how first-run config should be initialized.
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
containers: containers:
- name: openclaw - name: openclaw
image: default-route-openshift-image-registry.apps.lab.apilab.us/openclaw/openclaw:latest image: default-route-openshift-image-registry.apps.lab.apilab.us/openclaw/openclaw:latest
imagePullPolicy: Always imagePullPolicy: Always
# Run the Gateway daemon in-cluster. command: ["/bin/sh","-lc"]
command: ["openclaw"] args: ["sleep infinity"]
args: ["gateway","--port","18789","--bind","0.0.0.0"]
ports:
- name: http
containerPort: 18789
env: env:
- name: HOME - name: HOME
value: /home/node value: /home/node