Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sandbox/sdk/python/reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Arguments:
| `tags` | `dict[str, str] \| None` | Key-value labels for finding related sandboxes. |
| `volume_mounts` | `dict[str, str] \| None` | Volume IDs keyed by absolute mount path inside the sandbox. |
| `networking` | `list[SandboxNetworkingSpec] \| None` | Port to expose and, optionally, the domain and visibility to serve it on. Omit to expose nothing. See [Sandbox Networking](/sandboxes/networking). |
| `egress` | `SandboxEgressSpec \| None` | Restricts the sandbox's outbound traffic to a list of allowed destinations (hostnames, wildcards, IP literals, CIDR ranges, or in-cluster Service DNS names). Omit to leave internet access unrestricted. See [Restrict egress with an allowlist](/sandboxes/networking#restrict-egress-with-an-allowlist). |
| `ttl_seconds` | `int \| None` | Maximum lifetime in seconds, counted from creation. The sandbox is terminated once it elapses. Omit for no limit. See [sandbox lifetime](/sandboxes/overview#sandbox-lifetime). |

Returns a `Sandbox` handle.
Expand Down
1 change: 1 addition & 0 deletions sandbox/sdk/typescript/reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Options:
| `tags` | `Record<string, string> \| undefined` | Key-value labels for finding related sandboxes. |
| `volume_mounts` | `Record<string, string> \| undefined` | Volume IDs keyed by absolute mount path inside the sandbox. |
| `networking` | `SandboxNetworkingSpec[] \| undefined` | Port to expose and, optionally, the domain and visibility to serve it on. Omit to expose nothing. See [Sandbox Networking](/sandboxes/networking). |
| `egress` | `SandboxEgressSpec \| undefined` | Restricts the sandbox's outbound traffic to a list of allowed destinations (hostnames, wildcards, IP literals, CIDR ranges, or in-cluster Service DNS names). Omit to leave internet access unrestricted. See [Restrict egress with an allowlist](/sandboxes/networking#restrict-egress-with-an-allowlist). |
| `ttl_seconds` | `number \| undefined` | Maximum lifetime in seconds, counted from creation. The sandbox is terminated once it elapses. Omit for no limit. See [sandbox lifetime](/sandboxes/overview#sandbox-lifetime). |

Returns a `Sandbox` handle.
Expand Down
2 changes: 1 addition & 1 deletion sandboxes/networking.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Sandboxes run untrusted code, so their outbound traffic is isolated by default,
| ----------- | --------- |
| Public internet | Yes |
| Cluster DNS | Yes |
| In-cluster services and other pods (including other sandboxes) | No |
| In-cluster services and other pods (including other sandboxes) | No (unless allowlisted, see below) |
| Kubernetes API server and the sandbox control plane | No |
| Cloud metadata endpoint (`169.254.169.254`) | No |
| Private address space (`10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`, `169.254.0.0/16`, `100.64.0.0/10`) | No |
Expand Down