Kubernetes 1.31: Autoconfigura... Note

Kubernetes 1.31: Autoconfiguration For Node Cgroup Driver (beta)

Historically, configuring the correct cgroup driver (cgroupfs or systemd) for Kubernetes clusters has been challenging, as both the kubelet and CRI implementation (e.g., CRI-O, containerd) needed to use the same driver.In Kubernetes v1.28.0, the KubeletCgroupDriverFromCRI feature gate was introduced, allowing the kubelet to query the CRI implementation for the appropriate cgroup driver.As of Kubernetes v1.31.0, this feature is in beta and requires support in both the CRI implementation and the kubelet.Containerd requires version 2.0.0 or later, while CRI-O requires version 1.28.0 or later for compatibility with this feature.Cluster admins must configure their CRI implementation to specify the desired cgroup driver.Eventually, support for the kubelet's cgroupDriver configuration field will be removed, and the kubelet will fail to start if the CRI implementation lacks support for the KubeletCgroupDriverFromCRI feature.This feature simplifies cgroup driver configuration, reducing headaches for cluster admins.