mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-02 07:34:45 +08:00
Kubernetes 1.35 (k3s v1.35.x) rejects cgroup v1 by default via the failCgroupV1 kubelet config option. This breaks gateway startup on distros that still use cgroup v1 (e.g. Rocky Linux 8, CentOS 7/8). Detect cgroup v1 at container startup by checking for the absence of /sys/fs/cgroup/cgroup.controllers and pass --kubelet-arg=fail-cgroupv1=false so kubelet warns instead of exiting.