Skip to content
14 changes: 14 additions & 0 deletions crates/openshell-driver-kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,20 @@ snapshot cannot delete a supervisor created by a concurrent restart in the same
driver instance. The gate preserves concurrency across sandboxes; it does not
provide distributed exclusion between separate gateway or driver processes.

In a high-availability gateway, only the lease holder reconciles, while any
replica can serve a lifecycle RPC. A restart marks the CR `Preparing` before it
creates the supervisor Pod, and reconciliation respects that claim until the
bootstrap grace period expires, then reaps it: a stale restart is suspended and
a stale create is deleted. While the claim holds, reconciliation still re-checks
resource admission and the namespace workload fence, but defers the generation
fence and control-path drift checks. The workload
Pod stays behind its scheduling gate until the request releases the bootstrap.
Before it deletes the supervisor Pod of a stopped
sandbox, reconciliation reads the CR again and skips the deletion if the CR
changed after its refresh. Lifecycle writes to the CR retry on resourceVersion
conflicts without checking whether another replica started a transition, so a
request on one replica can still overwrite a suspension started by another.

## GPU Support

When a sandbox requests GPU support, the driver checks node allocatable capacity
Expand Down
Loading
Loading