一、报无法访问8080端口
问题:
[root@hn-chenzhousjzx-sx-bkl-0001 ~]# kubectl get nodes
The connection to the server localhost:8080 was refused - did you specify the right host or port?
解决方案:
1.master服务器的/etc/kubernetes/manifests/kube-apiserver.yaml
将insecure-port=0改成insecure-port=8080
2.重启kube-apiserver
$ sudo docker ps |grep 'kube-apiserver'
603d90351617 06924f18fe15 "kube-apiserver --..." 5 minutes ago Up 5 minutes k8s_kube-apiserver_kube-apiserver-kube-node1_kube-system_6a57a51e24c908ce9bda1e57855173b0_7
$ docker restart 603d90351617
二、重启机器后,kubelet启动不起来(错误号255)
journalctl -xefu kubelet 可以查看具体异常点