报错:
applying cgroup configuration for process caused “No such device or address””: unknown
Error: failed to start container "default-http-backend": Error response from daemon: OCI runtime create failed: container_linux.go:265: starting container process caused "process_linux.go:264: applying cgroup configuration for process caused \"No such device or address\"": unknown
Error: failed to start container "kubedns": Error response from daemon: OCI runtime create failed: container_linux.go:265: starting container process caused "process_linux.go:264: applying cgroup configuration for process caused \"No such device or address\"": unknown
如果出现以上错误信息,并且你使用的是 RKE 1 版本创建 kubernetes 集群。那么请检查 cgroup driver 配置,确保 cgroup driver 为默认配置,即 cgroupdriver=cgroupfs,docker 和 kubelet 需要保持相同配置。docker 和 kubelet 默认为 cgroupfs,所以不建议对 cgroup driver 做修改。
"exec-opts": ["native.cgroupdriver=cgroupfs"]
文档更新时间: 2023-03-09 09:31 作者:admin