For years, the Kubernetes operational mantra has been "cattle, not pets." If a pod fails or a node needs patching, you kill the pod and let the scheduler land a fresh instance elsewhere. But for stateful workloads—complex AI model weights in RAM, high-performance caches, or long-running computations—a cold restart is a performance catastrophe.

The introduction of the Kubelet Checkpoint API (KEP-2008) and the integration of CRIU (Checkpoint/Restore In Userspace) changes the game. We can now capture the exact execution state of a container—memory, registers, and file descriptors—and "hibernate" it across the cluster.

The Architectural Flow

Migrating a stateful pod across AWS EC2 nodes is not a single API call; it is an orchestrated pipeline involving the Kubelet, the container runtime (containerd), and an external transport layer (S3/ECR).


+-------------------+       +-----------------------+       +-----------------------+
|   Source Node     |       |    Transport Layer    |       |     Target Node       |
| (EKS Worker A)    |       |    (S3 / ECR / PVC)   |       |    (EKS Worker B)      |
+---------+---------+       +-----------+-----------+       +-----------+-----------+
          |                             ^                             |
          | 1. Trigger Checkpoint       |                             |
          |    (Kubelet API)            |                             |
          v                             |                             |
+-------------------+                  |                             |
|  CRIU Engine      |-------------------+                             |
| (Freeze & Dump)   |  2. Upload .tar archive                         |
+-------------------+                                                 |
          |                                                           |
          |                                                           | 3. Pull Archive
          |                                                           |    & Restore
          |                                                           v
          |                                                 +-----------------------+
          |                                                 |  CRIU Engine         |
          |                                                 | (Unpack & Thaw)      |
          +-------------------------------------------------+-----------------------+
                                                                         |
                                                                         v
                                                                +-----------------------+
                                                                |   Restored Pod        |
                                                                |   (State Intact)      |
                                                                +-----------------------+