Skip to content

Commit 526a608

Browse files
committed
Let the kubelet manage the image/artifact lifecycle
Signed-off-by: Sascha Grunert <[email protected]>
1 parent 9fbda21 commit 526a608

File tree

1 file changed

+3
-20
lines changed
  • keps/sig-node/4639-oci-volume-source

1 file changed

+3
-20
lines changed

keps/sig-node/4639-oci-volume-source/README.md

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -448,27 +448,10 @@ The added `mount_label` allow the kubelet to support SELinux contexts.
448448
The kubelet will use the `mountpoint` on container creation
449449
(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))
450450
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.
452452

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.
472455

473456
#### Container Runtimes
474457

0 commit comments

Comments
 (0)