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
Copy file name to clipboardExpand all lines: keps/sig-node/4639-oci-volume-source/README.md
+3-20Lines changed: 3 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -448,27 +448,10 @@ The added `mount_label` allow the kubelet to support SELinux contexts.
448
448
The kubelet will use the `mountpoint` on container creation
449
449
(by calling the `CreateContainer` RPC) to indicate the additional required volume mount ([`ContainerConfig.Mount`](https://github.com/kubernetes/cri-api/blob/3a66d9d/pkg/apis/runtime/v1/api.proto#L1102))
450
450
from the runtime. The runtime needs to ensure that mount and also manages its
451
-
life-cycle.
451
+
life-cycle, for example to remove the bind mount on container removal.
452
452
453
-
The [`PodSandbox`](https://github.com/kubernetes/cri-api/blob/3a66d9d/pkg/apis/runtime/v1/api.proto#L624-L643)
454
-
(used by `ListPodSandboxResponse` for the kubelet image garbage collection) will
455
-
be extended to support a string list of user requested OCI volume mounts:
456
-
457
-
```protobuf
458
-
message PodSandbox {
459
-
// …
460
-
461
-
repeated string oci_volumes = 8;
462
-
}
463
-
```
464
-
465
-
This allows the kubelet to identify which OCI volume images are still in use by
466
-
pods. It also requires runtimes to track the linked information between mounted
467
-
OCI objects and the pod sandbox to:
468
-
469
-
- Prevent removing OCI objects which are still in use
470
-
- Be able to provide the information which pod is using which mounted volumes to
471
-
API consumers (kubelet image garbage collection or maybe kubectl)
453
+
The kubelet tracks the information about which OCI object is used by which
454
+
sandbox and therefore manages the life-cycle of them.
0 commit comments