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:
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