Initial OpenClaw GitOps skeleton

This commit is contained in:
Clawdbot
2026-01-30 10:18:11 +00:00
commit 46bf054e0b
11 changed files with 237 additions and 0 deletions

51
manifests/deployment.yaml Normal file
View File

@@ -0,0 +1,51 @@
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
containers:
- name: openclaw
image: default-route-openshift-image-registry.apps.lab.apilab.us/openclaw/openclaw:latest
imagePullPolicy: Always
ports:
- name: http
containerPort: 18789
env:
# Keep caches out of $HOME under restricted SCC
- name: NPM_CONFIG_CACHE
value: /tmp/npm-cache
- name: XDG_CACHE_HOME
value: /tmp
# If OpenClaw uses HOME for state, keep it in the PVC-backed /home/clawd
- name: HOME
value: /home/clawd
volumeMounts:
- name: config
mountPath: /home/clawd/.openclaw
- name: tmp
mountPath: /tmp
- name: config-secret
mountPath: /clawd-init
readOnly: true
volumes:
- name: config
persistentVolumeClaim:
claimName: openclaw-config
- name: tmp
emptyDir: {}
- name: config-secret
secret:
secretName: openclaw-config