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-01View Code