1、解析不到对应的主机
[WARNING Hostname]: hostname
"k8s-master-01"
could not be reached
[WARNING Hostname]: hostname
"k8s-master-01"
: lookup k8s-master-01
on
192.168.222.2:53: no such host
hostnamectl set-hostname k8s-master-01
[root@k8s-master-01 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 k8s-master-01
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 k8s-master-01
192.168.222.153 k8s-master-01
2、docker的cgroup driver和kubelet的cgroup driver不一致
解决方式:将docker和kubelet的cgroup driver都改成systemd
docker:
[root@k8s-m-01 ~]# cat /etc/docker/daemon.json
{
"exec-opts": ["native.cgroupdriver=systemd"]
}
kubelet:
[root@k8s-m-01 ~]# cat /etc/sysconfig/kubelet
KUBELET_EXTRA_ARGS="--cgroup-driver=systemd"
systemctl daemon-reload
systemctl restart docker
systemctl restart kubelet
标签:01,driver,问题,kubelet,init,master,kubeadm,k8s,localhost From: https://www.cnblogs.com/exmyth/p/17092706.html