首页 > 系统相关 >kubectl进程启动失败"Streaming server stopped unexpectedly" err="listen tcp [::1]:0: bind: c

kubectl进程启动失败"Streaming server stopped unexpectedly" err="listen tcp [::1]:0: bind: c

时间:2022-11-21 10:12:03浏览次数:49  
标签:kubectl err requested tcp unexpectedly kubelet stopped localhost listen

使用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

相关文章