MicroK8s集群搭建报错
The hostname (xxx) of the joining node does not resolve to the IP "192.168.3.206". Refusing join (400).
root@k8sNode1:/home/maiar# microk8s join 192.168.3.205:25000/b7c31f7d5e39ffbb08c1617d2a82afa5/ae166735e632 --worker
Contacting cluster at 192.168.3.205
Connection failed. The hostname (k8sNode1) of the joining node does not resolve to the IP "192.168.3.206". Refusing join (400).
修改192.168.3.205(master)
主机的/etc/hosts
文件
127.0.0.1 localhost
127.0.1.1 maiar-virtual-machine
192.168.3.206 k8sNode1
192.168.3.207 k8sNode2
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
在192.168.3.205(master)
重新获取microk8s add-node
命令后,再次添加就可以了