无法运行Kubelet:无法创建kubelet:配置错误:kubelet cgroup驱动程序:“ cgroupfs”与docker cgroup驱动程序:“ systemd”不同
[root@c]# kubelet --version
Kubernetes v1.17.0
[root@c]# uname -a
Linux c 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@c]#
#docker info | grep systemd
Cgroup Driver: systemd
# cat /etc/docker/daemon.json
{
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
},
"storage-driver": "overlay2",
"storage-opts": [
"overlay2.override_kernel_check=true"
kubelet :
# cat /var/lib/kubelet/kubeadm-flags.env
KUBELET_KUBEADM_ARGS="--cgroup-driver=systemd --network-plugin=cni --pod-infra-container-image=k8s.gcr.io/pause:3.1"