Skip to content

Commit f016810

Browse files
committed
feat(k8s): launch node-topology sandboxes once scheduled
With supervisor_topology = "node", create and restart now return after the driver removes the scheduling gate. The bootstrap launches on the node once the scheduler binds the workload Pod, and a failed launch or a Pod that isn't scheduled within runtime_bootstrap_grace_seconds is logged and rolls the bootstrap back like any stale bootstrap. A shared supervisor now marks its boundary as stopping on every requested stop, so stopping a workload that is already gone no longer waits for a reconnect to time out and stall later instance removals. Update the Kubernetes HA docs, the driver README, and the debug-openshell-cluster skill to match. Signed-off-by: Gal Zaidman <gzaidman@nvidia.com>
1 parent abd0cd3 commit f016810

5 files changed

Lines changed: 602 additions & 173 deletions

File tree

‎crates/openshell-driver-kubernetes/README.md‎

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -295,15 +295,18 @@ The driver binds pool members to nodes (`bind_members_to_nodes`): the gateway
295295
accepts a supervisor only when the Pod its identity token resolves to is
296296
scheduled on the node it claims as its pool member ID.
297297

298-
- **Placement.** The driver removes the scheduling gate before it assigns the
299-
instance and waits up to 60 seconds for the scheduler to bind the workload
300-
Pod to a node. A Pod that is deleted or replaced while it waits fails the
301-
launch. The node name is the pinned member: it travels in the placement
298+
- **Placement.** The driver removes the scheduling gate and returns from
299+
create or restart before it assigns the instance. The bootstrap task watches
300+
the workload Pod and launches on the node in its `spec.nodeName`. A Pod that
301+
is deleted or replaced, or a node supervisor that refuses the instance, rolls
302+
the bootstrap back. So does a Pod that isn't scheduled within
303+
`runtime_bootstrap_grace_seconds`.
304+
The node name is the pinned member: it travels in the placement
302305
request, the gateway's assignment record, and the
303306
`openshell.ai/sandbox-runtime-supervisor-member` annotation on the Sandbox
304-
resource. The workload cannot start before its bootstrap Secret exists, so
305-
the driver creates the Secret last, and the kubelet reports a `FailedMount`
306-
Warning for it until then.
307+
resource. The bootstrap Secret exists before the gate is removed; until the
308+
launch places the route, the supervisor refuses the runtime's dials and the
309+
workload does not start.
307310
- **Recovery and takeover.** Recovery reads the member annotation and skips a
308311
node-topology generation that lacks one. Placement, takeover, and recovery
309312
of a pinned instance only consider its own member, so a lost node

0 commit comments

Comments
 (0)