Skip to content

Commit d4bdcf5

Browse files
committed
docs(kubernetes): clarify warm pool pod names and labels
Signed-off-by: Gordon Sim <gsim@redhat.com>
1 parent ebc69ab commit d4bdcf5

2 files changed

Lines changed: 51 additions & 1 deletion

File tree

‎docs/how-it-works/sandboxes/templates.mdx‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,48 @@ delete sandboxes already created from it. Templates without startup tuning do no
6161
create pools. Operators can disable pooling with
6262
[`openshell.drivers.kubernetes.warm_pool.enabled`](/how-it-works/gateways/configuration).
6363

64+
### Identify Warm Pods
65+
66+
A warm Kubernetes Sandbox resource and its workload Pod use the physical name
67+
`warm-<session-id>`. Claiming the runtime preserves both names and the Pod UID.
68+
The dedicated supervisor Pod also keeps its original name. Use the Sandbox
69+
resource's labels to find the logical sandbox created through OpenShell.
70+
71+
| Resource | Label | Meaning |
72+
| --- | --- | --- |
73+
| Sandbox | `openshell.ai/warm-pool` | Immutable template ID identifying the originating pool. Remains after claim. |
74+
| Sandbox | `openshell.ai/sandbox-id` | Logical sandbox ID, added when the claim binds the resource. |
75+
| Sandbox | `openshell.ai/sandbox-name` | Logical sandbox name, added when the claim binds the resource. |
76+
| Sandbox | `openshell.ai/sandbox-workspace` | OpenShell workspace, present before and after claim. |
77+
| Pod | `openshell.ai/boundary-pair` | Physical runtime pairing used by network policies. Remains unchanged at claim. |
78+
| Pod | `openshell.ai/boundary-role` | `workload` or `supervisor` for dedicated runtime pairs. |
79+
80+
List resources originating from warm pools, including claimed sandboxes:
81+
82+
```shell
83+
kubectl get sandboxes.agents.x-k8s.io -A -l openshell.ai/warm-pool \
84+
-L openshell.ai/warm-pool,openshell.ai/sandbox-id,openshell.ai/sandbox-name,openshell.ai/sandbox-workspace
85+
```
86+
87+
An absent Sandbox `openshell.ai/sandbox-id` label means the resource has not yet
88+
been bound to a logical sandbox. It does not prove that the runtime is ready or
89+
available; preparation, reservation, or retirement may be in progress.
90+
91+
Use the namespace and physical name from that output to inspect the workload Pod.
92+
Its boundary-pair value also selects its dedicated supervisor Pod:
93+
94+
```shell
95+
kubectl -n <namespace> get pod <physical-name> \
96+
-L openshell.ai/boundary-pair,openshell.ai/boundary-role
97+
kubectl -n <namespace> get pods -l openshell.ai/boundary-pair=<pair-value> \
98+
-L openshell.ai/boundary-role
99+
```
100+
101+
On a dedicated supervisor Pod, `openshell.ai/sandbox-id` initially contains the
102+
physical session ID and changes to the logical sandbox ID at claim. Use the
103+
Sandbox resource for logical name and workspace lookup. A shared supervisor
104+
serves multiple sandboxes and is not selected by a workload's boundary-pair label.
105+
64106
## Create a Sandbox from a Template
65107

66108
```shell

‎skills/debug-openshell-cluster/SKILL.md‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,15 @@ physical sessions leave the pool journal. Journal read failures defer cleanup;
14051405
Creates with `--template` claim only that template's ready spares; unmatched
14061406
requests use cold creation. `warm runtime ready for
14071407
claim` records the first authenticated readiness observation. A claimed sandbox
1408-
keeps its `warm-` physical resource name. `warm claim completion remains pending`
1408+
keeps its `warm-` physical resource name. The Kubernetes Sandbox resource retains
1409+
`openshell.ai/warm-pool` after claim and gains logical `openshell.ai/sandbox-id`
1410+
and `openshell.ai/sandbox-name` labels. The pool label alone does not identify
1411+
available capacity. Find the workload Pod by the resource's namespace and physical
1412+
name, then use its unchanged `openshell.ai/boundary-pair` label to find the dedicated
1413+
supervisor. The supervisor Pod's `openshell.ai/sandbox-id` changes from the physical
1414+
session ID to the logical sandbox ID at claim. See
1415+
[Identify Warm Pods](https://docs.nvidia.com/openshell/latest/how-it-works/sandboxes/templates#identify-warm-pods)
1416+
for label meanings and lookup commands. `warm claim completion remains pending`
14091417
indicates that recovery is retrying the recorded claim; inspect the reported API
14101418
or supervisor error before deleting anything. A gateway reservation protects its
14111419
runtime from pool draining even before the CR carries the logical Sandbox ID.

0 commit comments

Comments
 (0)