storage: single 10Gi PVC for /home/node (persist all state)
This commit is contained in:
@@ -29,20 +29,17 @@ spec:
|
||||
value: /tmp/npm-cache
|
||||
- name: XDG_CACHE_HOME
|
||||
value: /tmp
|
||||
# If OpenClaw uses HOME for state, keep it in the PVC-backed /home/clawd
|
||||
# OpenClaw docs default to /home/node in containers; persist it.
|
||||
- name: HOME
|
||||
value: /home/clawd
|
||||
value: /home/node
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /home/clawd/.openclaw
|
||||
- name: home
|
||||
mountPath: /home/node
|
||||
- name: tmp
|
||||
mountPath: /tmp
|
||||
volumes:
|
||||
- name: config
|
||||
- name: home
|
||||
persistentVolumeClaim:
|
||||
claimName: openclaw-config
|
||||
claimName: openclaw-home
|
||||
- name: tmp
|
||||
emptyDir: {}
|
||||
- name: config-secret
|
||||
secret:
|
||||
secretName: openclaw-config
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: openclaw-config
|
||||
name: openclaw-home
|
||||
namespace: openclaw
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
storage: 10Gi
|
||||
# storageClassName: <set if you want to pin it>
|
||||
|
||||
Reference in New Issue
Block a user