Changes

2,083 bytes added ,  7 November
m
Line 70: Line 70:     
Once a container checkpoint has been created, it's content can be analysed with the help of the [https://github.com/checkpoint-restore/checkpointctl checkpointctl] tool.
 
Once a container checkpoint has been created, it's content can be analysed with the help of the [https://github.com/checkpoint-restore/checkpointctl checkpointctl] tool.
 +
 +
==== Overview of Checkpoints ====
    
<code>checkpointctl</code> provides <code>list</code> and <code>show</code> commands that display an overview of checkpoints stored in <code>/var/lib/kubelet/checkpoints</code>.
 
<code>checkpointctl</code> provides <code>list</code> and <code>show</code> commands that display an overview of checkpoints stored in <code>/var/lib/kubelet/checkpoints</code>.
Line 88: Line 90:  
---------  -----                              --            -------                -------                ------      ----------  -----------------
 
---------  -----                              --            -------                -------                ------      ----------  -----------------
 
counter    docker.io/library/busybox:latest  52d907dc8f75  io.containerd.runc.v2  2025-11-07T11:48:41Z  containerd  306.8 KiB    270 B
 
counter    docker.io/library/busybox:latest  52d907dc8f75  io.containerd.runc.v2  2025-11-07T11:48:41Z  containerd  306.8 KiB    270 B
 +
</pre>
 +
 +
==== Low-level Analysis ====
 +
 +
The <code>inspect</code> command can be used to perform low-level analysis of the checkpoint data.
 +
 +
<pre>
 +
$ sudo checkpointctl inspect --files --ps-tree --metadata /var/lib/kubelet/checkpoints/checkpoint-counters_default-counter-2025-11-07T11:58:58Z.tar
 +
 +
Displaying container checkpoint tree view from /var/lib/kubelet/checkpoints/checkpoint-counters_default-counter-2025-11-07T11:58:58Z.tar
 +
 +
counter
 +
├── Image: docker.io/library/busybox:latest
 +
├── ID: 52d907dc8f75c8a60b366c2fca70839b9505c9da909ef4ae4f90a1c59ccd69ba
 +
├── Runtime: io.containerd.runc.v2
 +
├── Created: 2025-11-07T11:48:41Z
 +
├── Checkpointed: 2025-11-07T11:58:58Z
 +
├── Engine: containerd
 +
├── Checkpoint size: 306.8 KiB
 +
│  └── Memory pages size: 292.0 KiB
 +
├── Root FS diff size: 270 B
 +
├── Metadata
 +
│  ├── Pod name: counters
 +
│  ├── Kubernetes namespace: default
 +
│  └── Annotations
 +
│      ├── io.kubernetes.cri.sandbox-name: counters
 +
│      ├── io.kubernetes.cri.sandbox-namespace: default
 +
│      ├── io.kubernetes.cri.sandbox-uid: 430de1f2-cb7b-4c96-8ea7-ba51d335845f
 +
│      ├── io.kubernetes.cri.container-name: counter
 +
│      ├── io.kubernetes.cri.container-type: container
 +
│      ├── io.kubernetes.cri.image-name: busybox:latest
 +
│      └── io.kubernetes.cri.sandbox-id: ee53903d4146165817d0a95e3cfd95340cb9f3bc1852ff28031e43d97e765d88
 +
└── Process tree
 +
    └── [1]  sh
 +
        ├── Open files
 +
        │  ├── [REG 0]  /dev/null
 +
        │  ├── [PIPE 1]  pipe[4398338]
 +
        │  ├── [PIPE 2]  pipe[4398339]
 +
        │  ├── [cwd]  /
 +
        │  └── [root]  /
 +
        └── [623]  sleep
 +
            └── Open files
 +
                ├── [REG 0]  /dev/null
 +
                ├── [PIPE 1]  pipe[4398338]
 +
                ├── [PIPE 2]  pipe[4398339]
 +
                ├── [cwd]  /
 +
                └── [root]  /
 
</pre>
 
</pre>
509

edits