From df4ca2dd9e9fc072f68b1c7b9fd1efdb7a67f593 Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Tue, 7 Sep 2021 13:03:48 +0000 Subject: [PATCH] Add CRI API definitions for checkpoint/restore This adds the minimal CRI API changes to support checkpoint/restore and to enable implementation of these checkpoint/restore interfaces on container engine level. Signed-off-by: Adrian Reber --- .../k8s.io/cri-api/pkg/apis/runtime/v1/api.proto | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/staging/src/k8s.io/cri-api/pkg/apis/runtime/v1/api.proto b/staging/src/k8s.io/cri-api/pkg/apis/runtime/v1/api.proto index 05466a16cae..77ced902fd1 100644 --- a/staging/src/k8s.io/cri-api/pkg/apis/runtime/v1/api.proto +++ b/staging/src/k8s.io/cri-api/pkg/apis/runtime/v1/api.proto @@ -114,6 +114,9 @@ service RuntimeService { // Status returns the status of the runtime. rpc Status(StatusRequest) returns (StatusResponse) {} + + // CheckpointContainer checkpoints a container + rpc CheckpointContainer(CheckpointContainerRequest) returns (CheckpointContainerResponse) {} } // ImageService defines the public APIs for managing images. @@ -1543,3 +1546,16 @@ message ReopenContainerLogRequest { message ReopenContainerLogResponse{ } + +message CheckpointContainerRequest { + // ID of the container to be checkpointed. + string container_id = 1; + // Location of the checkpoint archive used for export + string location = 2; + // Timeout in seconds for the checkpoint to complete. + // Timeout of zero means to use the CRI default. + // Timeout > 0 means to use the user specified timeout. + int64 timeout = 3; +} + +message CheckpointContainerResponse {}