You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d8fc3ab
Browse filesBrowse the repository at this point in the historyBrowse files
feat(deploy): warm-pool gateway config and least-privilege RBAC
Render warm-pool settings into gateway.toml, add a values-warm-pool.yaml CI overlay, document the fields in the config reference, and grant the gateway only the extension-CRD verbs it uses: server-side apply (create+patch) on templates/pools and create/delete/get/list/watch on claims, with no status subresources. The sandbox pod ServiceAccount is intentionally granted none of these.
Signed-off-by: Roshni Malani <rmalani@nvidia.com>
Copy file name to clipboardExpand all lines: deploy/helm/openshell/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -225,6 +225,8 @@ add `ci/values-spire.yaml` to the OpenShell release values files.
225
225
| server.tls.certSecretName | string |`"openshell-server-tls"`| K8s secret (type kubernetes.io/tls) with tls.crt and tls.key for the server. |
226
226
| server.tls.clientCaSecretName | string |`"openshell-server-client-ca"`| K8s secret with ca.crt for client certificate verification (mTLS). Set to "" to disable mTLS and run HTTPS-only (use OIDC for auth instead). |
227
227
| server.tls.clientTlsSecretName | string |`"openshell-client-tls"`| K8s secret mounted into sandbox pods for mTLS to the server. |
228
+
| server.warmPool.enabled | bool |`false`| Enable warm pooling. Off by default; only the trusted default sandbox image with no per-request template/env overrides is warm-pooled — any other request falls back to the cold create path. |
229
+
| server.warmPool.pools | list |`[]`| Operator-declared pools. Each maps to one (image, runtimeClass, gpu) shape. Example: pools: - name: default replicas: 3 - name: gpu replicas: 1 gpu: true runtimeClassName: nvidia # Optional shared, read-only data volume (datasets/models/caches). sharedVolume: claimName: models # existing PVC (ROX/RWX for multi-node) mountPath: /models subPath: "" # optional |
228
230
| server.workspaceDefaultStorageSize | string |`""`| Default storage size for the workspace PVC in sandbox pods. Uses Kubernetes quantity syntax (e.g. "2Gi", "10Gi", "500Mi"). Empty = built-in default (2Gi). |
229
231
| service.healthPort | int |`8081`| Gateway health service port. |
230
232
| service.metricsPort | int |`9090`| Gateway metrics service port. |
Each pool maps to one `(image, runtimeClass, gpu)` shape. The writable per-agent
225
+
workspace (`/sandbox`) on a pooled pod is an ephemeral `emptyDir` seeded from the
226
+
image — it is never shared and is reclaimed with the pod, so claimed pods are
227
+
single-use. Large shared files belong on the read-only `shared_volume` instead.
228
+
The Helm chart exposes this as `server.warmPool.{enabled,pools}`.
229
+
230
+
A pooled pod enforces the pool's baseline policy and cannot be assigned a
231
+
per-sandbox policy after it boots, so a `sandbox create` request that supplies a
232
+
custom policy automatically falls back to the cold create path (its policy is
233
+
applied faithfully). Requests for a non-default image, a custom template, or
234
+
extra environment variables also fall back to cold.
235
+
199
236
### Docker
200
237
201
238
Sandboxes run as containers on a local bridge network. The supervisor binary is bind-mounted from the host (no in-cluster image pull required); guest mTLS material is supplied as host paths.
0 commit comments