๐๐ฎ๐๐๐ซ๐ง๐๐ญ๐๐ฌ ๐.๐๐ ๐ข๐ฌ ๐ก๐๐ซ๐!
๐ ๐๐ฎ๐๐๐ซ๐ง๐๐ญ๐๐ฌ ๐.๐๐ ๐ข๐ฌ ๐ก๐๐ซ๐! ๐
Released last week, with a new logo and no less than 58 enhancements (stable, beta, and alpha).
๐ One of the most anticipated features: per-container restart policies.
๐น The problem before: a Pod-level restart policy applied to all containers (Always, OnFailure, Never). This was limitingโe.g., you might want your main container to always restart, but your init container to run only once.
๐น The solution now: with the new ContainerRestartRules, you can set a restartPolicy per container and even use restartPolicyRules to restart containers conditionally based on exit codes.
๐ก ๐๐ฌ๐ ๐๐๐ฌ๐๐ฌ:
ML training jobs โ Restart containers โin placeโ on retriable errors without rescheduling the entire Pod. Init containers โ Run only once, while the main container can still always restart. Multi-container Pods โ Each container can follow its own restart logic.
โ๏ธ To use it, enable the ContainerRestartRules feature gate in Kubernetes 1.34+, then set restartPolicy and restartPolicyRules in your Pod spec.
A big step forward for flexibility and fine-grained lifecycle control in Kubernetes!
Learn More Explore the following links.๐๐ป
- Read the documentation for container restart policy.
- Read the KEP for the Container Restart Rules
- kubernetes v1.34