Files
k8s-manifests/openclaw/deployment-openclaw.yaml
T
chemavx 74b9a31352 openclaw: corrige mountPath a /home/node/.openclaw
El config dir de OpenClaw es /home/node/.openclaw, no /data.
Monta el PVC en la ruta correcta para que openclaw.json persista.
Elimina OPENCLAW_DATA_DIR (no era el config dir).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 10:45:56 +00:00

45 lines
995 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: openclaw
namespace: openclaw
spec:
replicas: 1
selector:
matchLabels:
app: openclaw
template:
metadata:
labels:
app: openclaw
spec:
nodeSelector:
kubernetes.io/hostname: chemavx-k8
serviceAccountName: openclaw-agent
securityContext:
runAsUser: 1000
fsGroup: 1000
containers:
- name: openclaw
image: ghcr.io/openclaw/openclaw:2026.4.12
imagePullPolicy: IfNotPresent
ports:
- containerPort: 18789
env:
- name: NODE_OPTIONS
value: --max-old-space-size=1536
resources:
requests:
cpu: 100m
memory: 512Mi
limits:
cpu: "1"
memory: 2Gi
volumeMounts:
- name: data
mountPath: /home/node/.openclaw
volumes:
- name: data
persistentVolumeClaim:
claimName: openclaw-pvc