Kubernetes 1.38 previews cgroup driver changes and GPU support
iThome reports that Kubernetes 1.38 is scheduled for release on December 16, with planned features and incompatible changes previewed for cluster administrators. The release is expected to disable the legacy cgroup driver configuration by default, deprecate kubelet's cgroupDriver field, and adjust kubeadm's pre-deployment checks. Pod-level resource configuration and DRA support for partitionable devices such as GPUs are also expected to become stable.
The preview identifies upgrade compatibility concerns for cluster administrators, including node registration failures when container runtimes cannot report cgroup driver information. It also describes stable Pod-level resource configuration and DRA support for allocating GPUs to workloads.
文/李建興|2026-11-24 發表
Kubernetes 1.38預定12月16日正式發布,開發團隊提前公布新版功能與不相容變更,讓叢集管理員有時間做好升級準備。新版將預設停用舊有的cgroup驅動程式設定機制,若容器執行環境無法回報驅動程式資訊,可能導致節點無法完成註冊。Pod層級資源配置及GPU等可分割裝置的支援也預計升為穩定版。
Kubernetes透過Linux核心的cgroup機制管理容器的CPU與記憶體等資源,節點管理程式kubelet與容器執行環境須採用相同的cgroup驅動程式。新版預設由kubelet透過容器執行環境介面(CRI)的RuntimeConfig取得驅動程式資訊,因此容器執行環境須比kubelet更早啟動。若多次嘗試仍無法取得資訊,kubelet便會回報錯誤,在節點註冊前停止執行。
新版將棄用kubelet組態檔中的cgroupDriver欄位,預設拒絕使用該欄位的組態,管理者須啟用特定功能開關,才能暫時續用舊有設定方式。叢集部署工具kubeadm也將調整部署前的檢查機制,若容器執行環境不支援所需介面,便會回報錯誤。
#Kubernetes 1.38#Kubernetes#kubelet#kubeadm#Dynamic Resource Allocation#GPU