Why CRI-O's End of Container-Level Restore Matters
The end of container-level restore in CRI-O signifies a shift in how Kubernetes handles application state management. This feature allowed you to capture a running container's state, including its process memory and execution state, and recreate it from a checkpoint. It was particularly useful for applications that needed to resume from a specific point without restarting entirely. However, with this support now removed, you need to rethink how you manage stateful applications in your Kubernetes clusters.
Previously, when container-level restore was enabled, CRI-O utilized Checkpoint/Restore In Userspace (CRIU) to recreate individual containers from saved execution states. You could configure this behavior using the container_level_enabled parameter, which controlled whether checkpoint creation and restore were active. The default setting was checkpoint_only, meaning that while you could create checkpoints, the restoration of individual containers was not supported. This change was introduced in CRI-O versions 1.35.9, 1.36.6, and 1.37.0, and it’s crucial to note that earlier patch releases in those branches had different defaults that allowed restore when CRIU was available.
In production, you must be aware that container-level restore is unsupported across all CRI-O versions. If CRI-O cannot locate the criu executable in its PATH, it will disable checkpoint/restore functionality without preventing normal startup. This could lead to confusion if you expect restore capabilities that are no longer available. Always ensure CRIU is installed on your nodes if you plan to use checkpointing for other purposes, but be prepared to adjust your strategies for managing application states without container-level restore.
Key takeaways
- →Understand that container-level restore is no longer supported in CRI-O.
- →Configure the `container_level_enabled` parameter to `checkpoint_only` to manage checkpoint creation.
- →Ensure CRIU is installed on nodes for any checkpointing needs, but note that restore won't be available.
Why it matters
This change impacts how you manage stateful applications in Kubernetes, potentially increasing downtime or complexity when recovering from failures. Understanding these limitations is essential for maintaining application reliability.
Code examples
[crio.checkpoint_restore]
container_level_enabled = "checkpoint_only"sudo crio status config | grep -E '(enable_criu_support|container_level_enabled)'When NOT to use this
The official docs don't call out specific anti-patterns here. Use your judgment based on your scale and requirements.
Want the complete reference?
Read official docsIndustry-standard certifications built by the people behind Linux and Kubernetes. Earn the CKA — the gold standard Kubernetes administrator cert. OpsCanary readers get 30% off year-round with code OPSCANARY3.
Get CKA certified →Unpacking Drone 2: The Future of Kubernetes Agents
Discover how Drone 2 leverages Kubernetes to enhance agent operations. With a focus on the agentgateway's multiple roles, this article dives into the technical intricacies that make it a game-changer.
Feature Flags in Kubernetes: Mastering AWS AppConfig
Feature flags are essential for decoupling feature releases from deployments, especially in dynamic environments like Kubernetes. With AWS AppConfig, you can implement these flags using a sidecar pattern, allowing for seamless configuration management. Dive in to learn how this integration works and what you need to watch out for in production.
Harnessing the Power of Cloud-Native Agents in Kubernetes
Cloud-native agent harnesses are revolutionizing how we manage distributed systems. With a core engine called the agent loop, these harnesses streamline operations across various environments, including Kubernetes. Dive in to understand how this architecture can enhance your deployment strategy.
Get the daily digest
One email. 5 articles. Every morning.
No spam. Unsubscribe anytime.