老师,您好,
我在安装了kubelet的之后,启动服务后,出现报错error: failed to run Kubelet: failed to create kubelet: misconfiguration: kubelet cgroup driver: "cgroupfs" is different from docker cgroup driver: "systemd"
我在网上搜了下,说是我安装的docker使用的文件驱动是systemd,不匹配。
我修改了下/lib/systemd/system/docker.service ,将这里改成了--exec-opt native.cgroupdriver=cgroupfs \
但是启动后还是会有报错:
7月 30 18:00:49 node kubelet[7795]: I0730 18:00:49.772652 7795 kubelet_node_status.go:273] Setting node annotation to enable volume controller attach/detach
7月 30 18:00:49 node kubelet[7795]: I0730 18:00:49.774504 7795 kubelet_node_status.go:431] Recording NodeHasSufficientDisk event message for node 192.168.105.7
7月 30 18:00:49 node kubelet[7795]: I0730 18:00:49.774540 7795 kubelet_node_status.go:431] Recording NodeHasSufficientMemory event message for node 192.168.105.7
7月 30 18:00:49 node kubelet[7795]: I0730 18:00:49.774565 7795 kubelet_node_status.go:431] Recording NodeHasNoDiskPressure event message for node 192.168.105.7
7月 30 18:00:49 node kubelet[7795]: E0730 18:00:49.794827 7795 summary.go:92] Failed to get system container stats for "/system.slice/kubelet.service": failed to get cgroup stats for "/system.slice/kubelet.service": failed to get container info for "/system.slice/kubelet.service": unknown container "/system.slice/kubelet.service"
还请老师能帮忙看下解答下,谢谢!
我的kubernetes是使用的您提供的二进制文件,docker是通过yum下载的最新版本,我的操作系统是centos7.5
docer的软件版本是1.13