48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: openclaw
|
|
namespace: openclaw
|
|
labels:
|
|
app.kubernetes.io/name: openclaw
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: openclaw
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: openclaw
|
|
spec:
|
|
serviceAccountName: openclaw
|
|
|
|
# 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
|
|
command: ["/bin/sh","-lc"]
|
|
args: ["sleep infinity"]
|
|
env:
|
|
- name: HOME
|
|
value: /home/node
|
|
- name: NPM_CONFIG_CACHE
|
|
value: /tmp/npm-cache
|
|
- name: XDG_CACHE_HOME
|
|
value: /tmp
|
|
volumeMounts:
|
|
- name: home
|
|
mountPath: /home/node
|
|
- name: tmp
|
|
mountPath: /tmp
|
|
|
|
volumes:
|
|
- name: home
|
|
persistentVolumeClaim:
|
|
claimName: openclaw-home
|
|
- name: tmp
|
|
emptyDir: {}
|