Workspace Runtime Lifecycle
Every Crawbl user gets an isolated Agent Runtime pod, provisioned through a Kubernetes custom resource. The platform operator watches these resources and reconciles the full runtime environment: workload, storage, services, and configuration.
State Machine
A workspace runtime resource progresses through phases tracked in status.phase.
Progressing
The operator is converging child resources (pod identity, configuration, storage, services, or workload).
Ready
The workload has at least one ready replica and the Ready condition is true.
Suspended
Workload scaled to zero replicas. Storage and services remain for later resume.
Deleting
The operator is removing child resources and waiting until all are gone.
Error
The operator could not build the desired runtime state, usually due to invalid bootstrap or runtime config.
The backend derives a user-facing runtime.status from the phase:
ready-- runtime is verifiedprovisioning--Progressing,Deleting, or empty phaseoffline--Suspendedfailed--Error
What Gets Created
For each workspace, the operator provisions identity, configuration, storage, networking, and the runtime workload from a single high-level resource.
Suspend and Resume
Setting the suspend flag scales the workload to zero. Storage and services remain. Clearing the flag resumes without losing state.
Cleanup
When a workspace runtime resource is deleted, the operator removes all child resources in the shared runtime namespace and waits until all are gone before completing deletion.
What's Next
See the Agent Runtime to learn what runs inside the agent pod.