返回综合榜
开发工具与框架Kubernetes Blog

Kubernetes v1.38 抢先看:cgroup 驱动发现、kuberc 与 Pod 级资源转正

Kubernetes 发布团队公布了 v1.38 版本计划中的变更预览,该版本定于 2026 年 12 月 16 日星期三发布。文章涵盖废弃、移除、破坏性变更和重点增强,并提醒所有内容在正式发布前仍可能调整。

最大的破坏性变更是 kubelet 将不再允许通过传统方式配置 cgroup 驱动,而是要求容器运行时通过 CRI RuntimeConfig RPC 上报。除非启用临时的 LegacyCgroupDriverFallback 特性门控,kubelet 配置中的 cgroupDriver 字段将被拒绝;kubeadm 也不再默认将 cgroupDriver 设为 systemd,如果 kubelet 重试后仍无法从运行时获取驱动,它会在注册节点前直接报错退出。此外,在 LimitedSwap 节点上使用 Pod 级资源时将应用新的交换限制,Pod 级内存请求等于限制的 Pod 将完全无法使用 swap。

在废弃方面,KUBECTL_REMOTE_COMMAND_WEBSOCKETS 和 KUBECTL_PORT_FORWARD_WEBSOCKETS 这两个关闭 WebSocket 的环境变量被移除;kuberc 凭证插件白名单中的 name 别名将从新的 kubectl.config.k8s.io/v1 API 中删除;准入 webhook 不再接收 TokenReview 和 SubjectAccessReview 请求;cgroup v1 支持继续分阶段退出,计划在未来版本中彻底移除。

在增强特性方面,kuberc 用户偏好、Pod 级资源以及 DRA 对可分区设备的支持预计都将毕业为稳定版;新的 alpha 版 EvictionRequest API 允许控制器与应用特定的响应者协调,让 Pod 在被驱逐前完成准备工作,同时仍遵守 PodDisruptionBudget。运维人员在升级前应检查脚本、CI 环境、webhook 配置和节点运行时,并在正式发布后遵循官方 v1.38 版本说明操作。

Kubernetes v1.38 Sneak Peek: cgroup driver discovery, kuberc and pod-level resources go stable

The Kubernetes release team has published a preview of the changes planned for v1.38, which is scheduled for release on Wednesday, December 16, 2026. The post covers deprecations, removals, breaking changes and featured enhancements, and notes that everything is subject to change before the release date.

The biggest breaking change is that the kubelet will stop allowing the legacy mechanism for configuring the cgroup driver, instead requiring the container runtime to report it through the CRI RuntimeConfig RPC. The cgroupDriver field in the kubelet configuration will be rejected unless the temporary LegacyCgroupDriverFallback feature gate is enabled, kubeadm will no longer set cgroupDriver to systemd by default, and the kubelet will exit with an error before registering the node if it cannot obtain the driver from the runtime. Pod-level resources on LimitedSwap nodes will also see new swap limits, so Pods whose pod-level memory request equals their limit will get no swap at all.

On the deprecation side, the KUBECTL_REMOTE_COMMAND_WEBSOCKETS and KUBECTL_PORT_FORWARD_WEBSOCKETS opt-out environment variables are removed, the name alias in kuberc credential plugin allowlist entries is dropped from the new kubectl.config.k8s.io/v1 API, admission webhooks no longer receive TokenReview and SubjectAccessReview requests, and cgroup v1 support continues to be phased out with removal planned in a future release.

Among the enhancements, kuberc user preferences, pod-level resources, and DRA support for partitionable devices are all expected to graduate to stable, and a new alpha EvictionRequest API lets controllers coordinate with application-specific responders so Pods can prepare before being evicted while still respecting PodDisruptionBudgets. Operators should review scripts, CI environments, webhook configurations and node runtimes ahead of the upgrade and follow the official v1.38 release notes once available.

kubernetesreleasedeprecationkubeletcgroupkubectlkubercpod-level-resources
综合13
质量94
猎物热度0
时效3
信息来源1 个来源,主来源:Kubernetes Blog

猎鹰不保存原文正文。标题与摘要用于快速发现信息,事实细节请以来源原文为准。

查看来源