K3s 1.35如何添加该failCgroupV1: false字段

环境信息:
K3s 版本:
1.35.0

节点 CPU 架构、操作系统和版本::
6.18.8-1.el8.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jan 30 13:23:38 EST 2026 x86_64 x86_64 x86_64 GNU/L
inux

集群配置:
5 servers

问题描述: kubernetes/CHANGELOG/CHANGELOG-1.35.md at master · kubernetes/kubernetes · GitHub

vendor: Updated k8s.io/system-validators to v1.12.1. The cgroups validator now throws an error instead of a warning if cgroups v1 is detected on the host and the provided KubeletVersion is v1.35 or newer.

  • Edit the kube-system/kubelet-config ConfigMap and add the failCgroupV1: false field before upgrading. (#134744, @neolit123) [SIG Cluster Lifecycle and Node]

如何在k3s中添加 failCgroupV1: false ,k3s中没有kube-system/kubelet-config配置。

k3s 是支持 kubeletconfig这种方式配置的,参考:https://github.com/k3s-io/k3s/issues/2116

–fail-cgroupv1 Default: true 修改成false可行。

我猜应该是这样的:

kubelet-arg:
  - fail-cgroupv1=false
1 个赞

非常感谢,问题已经解决。