使用systemctl start kubelet启动发现没有报错,使用journalctl -xefu kubelet查看报错如下
"Streaming server stopped unexpectedly" err="listen tcp [::1]:0: bind: cannot assign requested address"
在/etc/hosts添加ipv4和ipv6的回环地址
vim /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 # 重启查看状态 [root@node02 10:56:03~]# systemctl restart kubelet [root@node02 10:56:06~]# systemctl status kubelet
标签:kubectl,err,requested,tcp,unexpectedly,kubelet,stopped,localhost,listen From: https://www.cnblogs.com/lucktomato/p/16910466.html