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 e00cfa4
Browse filesBrowse the repository at this point in the historyBrowse files
CPU values use Kubernetes-style quantities such as `500m`, `1`, or `2.5`.
87
87
Memory values use byte quantities such as `512Mi`, `4Gi`, or `8G`.
88
88
89
-
OpenShell stores these values as typed portable resource requirements. Docker
90
-
and Podman apply them as runtime limits. Kubernetes uses each quantity as its
89
+
Docker and Podman apply these values as runtime limits. Kubernetes uses each quantity as its
91
90
limit and, unless its driver configuration provides a request, as its request.
92
91
The VM and MXC drivers reject
93
92
CPU or memory requirements because they do not currently support per-sandbox
@@ -271,15 +270,6 @@ Create a sandbox from a template:
271
270
openshell sandbox create --template gpu-kata --provider github -- claude
272
271
```
273
272
274
-
When the gateway creates a sandbox from a template, it resolves the template's
275
-
CPU, memory, and GPU settings into the sandbox's typed `resource_requirements`.
276
-
The reusable template field `SandboxWorkloadConfig.resources` uses the same
277
-
`ResourceRequirements` message as `SandboxSpec.resource_requirements`, so API
278
-
and SDK callers use `cpu.quantity`, `memory.quantity`, and `gpu` in both places.
279
-
When loading a reusable template stored with the earlier `cpu`, `memory`, and
280
-
`gpu` shape, the gateway converts it to the current typed requirements before
281
-
returning or using the template.
282
-
283
273
The `--template` flag cannot be combined with inline workload flags such as `--from`, `--cpu`, `--memory`, `--gpu`, `--env`, or `--driver-config-json`. Put those values on the template instead. Create-time policy and provider attachments remain part of the sandbox request, so each sandbox can keep its own access boundary.
0 commit comments