OpenClaw Enterprise -- Deployment Guide¶
This guide covers everything needed to deploy, configure, and scale OpenClaw Enterprise on Kubernetes.
Architecture Overview¶
OpenClaw Enterprise runs on Kubernetes and is managed by a custom Go operator. Each tenant receives a dedicated OpenClaw gateway instance with an OPA sidecar for policy evaluation. State is stored in PostgreSQL, and Redis provides caching and pub/sub.
graph TB
subgraph "Kubernetes Cluster"
subgraph "openclaw-system namespace"
OP[Operator Manager]
WH[Admission Webhook]
end
subgraph "openclaw-enterprise namespace"
subgraph "Gateway Pod (per tenant)"
GW[OpenClaw Gateway]
OPA[OPA Sidecar :8181]
end
SVC[Gateway Service]
end
OP -->|reconciles| GW
OP -->|validates| WH
WH -->|validates PolicyBundle| OP
GW -->|policy eval| OPA
end
PG[(PostgreSQL 16+)]
RD[(Redis 7+)]
OIDC[OIDC Provider]
GW --> PG
GW --> RD
GW --> OIDC
OPA -->|loads policies| CM[ConfigMap]
Key Components¶
| Component | Role | Technology |
|---|---|---|
| Operator | Manages CRDs, reconciles desired state | Go, controller-runtime |
| Gateway | Runs OpenClaw with enterprise plugins | Node.js 22, TypeScript |
| OPA Sidecar | Evaluates policies per request | Open Policy Agent |
| PostgreSQL | Persistent state, audit log, partitioned tables | PostgreSQL 16+ |
| Redis | Caching, session state, pub/sub | Redis 7+ |
| OIDC Provider | SSO authentication | Keycloak, Okta, Azure AD |
Custom Resources¶
The operator manages two Custom Resource Definitions:
- OpenClawInstance (
oci) -- Declares a deployed OpenClaw Enterprise instance with auth, storage, replicas, and connector configuration. - PolicyBundle (
pb) -- Declares a set of Rego policies organized by scope and domain, loaded into the OPA sidecar.
Deployment Pages¶
| Page | Description |
|---|---|
| Prerequisites | Cluster, tooling, and infrastructure requirements |
| Operator Guide | Installing and configuring the Kubernetes operator |
| Configuration Reference | Environment variables, CR spec fields, secrets |
| Scaling and Performance | Sizing, load testing, HPA, and monitoring |
| Compatibility Matrix | Supported versions and breaking change policy |
Quick Start¶
- Verify all prerequisites are met.
- Install the operator CRDs and deployment per the operator guide.
- Create Kubernetes Secrets for PostgreSQL, Redis, and OIDC credentials.
- Apply an
OpenClawInstanceCR to provision a gateway. - Apply a
PolicyBundleCR to load enterprise policies into OPA. - Verify the instance reaches the
Runningphase:
Expected output: