Skip to content

Commit 72fc58f

Browse files
drewelezar
authored andcommitted
docs(compute): revert external driver documentation
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
1 parent f359996 commit 72fc58f

2 files changed

Lines changed: 26 additions & 50 deletions

File tree

‎docs/reference/gateway-config.mdx‎

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -746,9 +746,10 @@ guest_tls_key = "/var/lib/openshell/guest-tls/client-key.pem"
746746
### Extension Driver
747747

748748
Extension drivers run outside the gateway and expose the
749-
supported `compute_driver.proto` gRPC service on a Unix socket. The selected
750-
driver name is the key used for driver-owned sandbox config such as
751-
`template.driver_config.<name>`.
749+
`compute_driver.proto` gRPC service on a Unix socket. Use a non-reserved driver
750+
name; built-in names such as `vm`, `docker`, `podman`, and `kubernetes` cannot
751+
be selected through unmanaged socket endpoints. The selected driver name is the
752+
key used for driver-owned sandbox config such as `template.driver_config.<name>`.
752753

753754
```toml
754755
[openshell]
@@ -762,16 +763,3 @@ compute_drivers = ["kyma"]
762763
[openshell.drivers.kyma]
763764
socket_path = "/run/openshell/kyma-compute-driver.sock"
764765
```
765-
766-
At launch time, `--compute-driver-socket` can override the implementation for
767-
any explicitly selected name, including `docker`, `podman`, `kubernetes`, and
768-
`vm`. The override takes precedence over built-in construction:
769-
770-
```shell
771-
openshell-gateway --drivers docker \
772-
--compute-driver-socket /run/openshell/docker-driver.sock
773-
```
774-
775-
Do not use `[openshell.drivers.docker].socket_path` for this purpose; that
776-
existing field selects the Docker daemon socket. Operator-supplied driver
777-
processes and Unix sockets are not created or supervised by the gateway.

‎docs/reference/sandbox-compute-drivers.mdx‎

Lines changed: 22 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ remain unavailable.
2020

2121
Restarting the gateway preserves this intent. The gateway does not stop Docker
2222
or Podman containers during shutdown. At startup it sends idempotent start
23-
requests for drivers that advertise startup reconciliation. The built-in
24-
Docker, Podman, and MicroVM implementations advertise this feature, so
25-
sandboxes that were intended to run are reconciled. Already-running resources
26-
are unchanged, retained stopped compute is restarted, and explicitly stopped
27-
sandboxes remain stopped. Kubernetes workloads continue running independently
28-
of the gateway process.
23+
requests for Docker, Podman, and MicroVM sandboxes that were intended to run;
24+
already-running resources are unchanged, retained stopped compute is restarted,
25+
and explicitly stopped sandboxes remain stopped. Kubernetes workloads continue
26+
running independently of the gateway process.
2927

3028
## Configure a Compute Driver
3129

@@ -36,8 +34,8 @@ Configure the compute driver on the gateway. Current releases accept one driver
3634
compute_drivers = ["docker"]
3735
```
3836

39-
Built-in values are `docker`, `podman`, `kubernetes`, and `vm`.
40-
Other names select an extension driver and require a
37+
Reserved built-in values are `docker`, `podman`, `kubernetes`, and `vm`.
38+
Non-reserved names select an extension driver and require a
4139
`socket_path` in `[openshell.drivers.<name>]`.
4240

4341
When `compute_drivers` is unset, the gateway auto-detects Kubernetes, then Podman, then Docker. Local container runtimes must respond to an API probe before the gateway selects them. The VM driver is never auto-detected; configure it explicitly with `compute_drivers = ["vm"]` or set `OPENSHELL_DRIVERS=vm` in the launch environment.
@@ -50,8 +48,8 @@ Common gateway options:
5048

5149
Set driver-specific values such as sandbox images, callback endpoints, network names, TLS material, and VM sizing in the gateway TOML file. See the [Gateway Configuration File](./gateway-config) reference for the full `[openshell.drivers.<name>]` schema.
5250

53-
External drivers use the same supported `compute_driver.proto` gRPC surface as
54-
the managed VM driver. For an out-of-tree driver, choose a driver name and point
51+
Extension drivers use the same `compute_driver.proto` gRPC surface as the
52+
managed VM driver. For an out-of-tree driver, choose a driver name and point
5553
the gateway at the Unix socket the operator has already provisioned:
5654

5755
```toml
@@ -63,26 +61,17 @@ socket_path = "/run/openshell/kyma.sock"
6361
```
6462

6563
For a launch-time socket override, pass the selected driver name with the
66-
socket path:
64+
socket path. The endpoint replaces normal driver construction for that name,
65+
including canonical built-in names:
6766

6867
```shell
6968
openshell-gateway --drivers kyma --compute-driver-socket /run/openshell/kyma.sock
69+
openshell-gateway --drivers docker --compute-driver-socket /run/openshell/docker.sock
7070
```
7171

72-
The override also accepts a built-in name. This lets an operator provide, for
73-
example, a Docker-compatible implementation through the external contract
74-
without changing driver-owned config keys:
75-
76-
```shell
77-
openshell-gateway --drivers docker --compute-driver-socket /run/openshell/docker-driver.sock
78-
```
79-
80-
The endpoint override takes precedence over built-in construction. The gateway
81-
does not spawn, supervise, or delete an operator-supplied driver. The
82-
operator must protect the socket so only the gateway uid can access it.
83-
The driver's advertised name is diagnostic metadata and does not authorize
84-
special behavior. Drivers negotiate optional startup and process-identity
85-
behavior through `GetCapabilities`; unknown features are ignored.
72+
The gateway connects to the operator-provided endpoint; it does not provision
73+
or supervise the remote driver. The operator must protect the socket so only
74+
the gateway uid can access it.
8675

8776
Sandbox create supports `--cpu` and `--memory` for per-sandbox compute sizing.
8877
Docker and Podman apply them as runtime limits. Kubernetes applies them as both
@@ -133,16 +122,15 @@ It overrides the gateway's configured default runtime class for that sandbox,
133122
while a typed `SandboxTemplate.runtime_class_name` value from the API still
134123
takes precedence.
135124

136-
Compute drivers can report the address through which their sandboxes reach the
137-
gateway. If the primary listener covers a requested address, the gateway reuses
125+
Docker and Podman report the address through which their sandboxes can reach
126+
the gateway. If the primary listener covers that address, the gateway reuses
138127
it and sandbox JWT authentication restricts the supervisor to its callback RPC
139-
allowlist. Otherwise, the gateway creates an additional callback-only listener.
140-
Listener requirements are structurally validated independently of the selected
141-
driver name. Use the primary endpoint for CLI, administrator, health,
142-
reflection, inference-route management, and HTTP requests. A `PermissionDenied`
143-
response from an additional callback-only listener is expected for those
144-
requests. Do not broaden the primary listener to `0.0.0.0` solely to make
145-
sandbox callbacks reachable.
128+
allowlist. If the primary listener is not reachable through that address, the
129+
gateway creates an additional callback-only listener. Use the primary endpoint
130+
for CLI, administrator, health, reflection, inference-route management, and
131+
HTTP requests. A `PermissionDenied` response from an additional callback-only
132+
listener is expected for those requests. Do not broaden the primary listener
133+
to `0.0.0.0` solely to make sandbox callbacks reachable.
146134

147135
## Docker Driver
148136

0 commit comments

Comments
 (0)