Skip to content

Commit fd5a64a

Browse files
authored
Force symlink creation for ModelCar (#448)
Signed-off-by: Patryk Matuszak <[email protected]>
1 parent 87d0ef3 commit fd5a64a

File tree

1 file changed

+1
-1
lines changed
  • docs/modelserving/storage

1 file changed

+1
-1
lines changed

docs/modelserving/storage/oci.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ kubectl get pods
126126
sklearn-iris-oci-predictor-00001-deployment-58fc6564d7 3/3 Running 1 (39m ago) 40m
127127
```
128128

129-
As you can see, the Pod has now one additional container. This container is running the modelcar image and runs a `ln -s /proc/$$/root/models /mnt/` command to create a symbolic link on a shared empty volume that is mounted on `/mnt` in the modelcar container and the serving runtime container. The magic here is the symbolic link over proc filesystem, which is shared among all containers. This is possible on Kubernetes for the container's of a Pod if the field `.spec.shareProcessNamespace` is set to `true`, which is the case for all storageUri that leverages the `oci://` schema.
129+
As you can see, the Pod has now one additional container. This container is running the modelcar image and runs a `ln -sf /proc/$$/root/models /mnt/` command to create a symbolic link on a shared empty volume that is mounted on `/mnt` in the modelcar container and the serving runtime container. The magic here is the symbolic link over proc filesystem, which is shared among all containers. This is possible on Kubernetes for the container's of a Pod if the field `.spec.shareProcessNamespace` is set to `true`, which is the case for all storageUri that leverages the `oci://` schema.
130130

131131
Let's jump into the runtime container and examine the mounted `/mnt` filesystem:
132132

0 commit comments

Comments
 (0)