Kubernetes安装过程中错误(Unable to connect to the server: dial tcp 201.22.0.34:443: getsockopt: operation )

版权声明:均是学习笔记、心得,如有冒犯,请指出,会及时处理。 https://blog.csdn.net/u013355826/article/details/82790183

Kubernetes安装环境

系统:centos7.3

版本:Kubernetes1.10.0

安装:kubeadm

出现坑,不要怕,也不要胡思乱想,直接查询Google和百度就行。

人生就是一个不断填坑的过程,填平了,再用脚踏一踏,这样才能走的舒服和踏实。

刚装完,无论执行什么命令都是如下错误:

Unable to connect to the server: dial tcp 201.22.0.34:443: getsockopt: operation timed out

执行查询日志命令

journalctl -f -u kubelet.service

日志信息如下

Oct 25 15:48:15 localhost kubelet: W1025 15:48:15.584765  240975 cni.go:196] Unable to update cni config: No networks found in /etc/cni/net.d
Oct 25 15:48:15 localhost kubelet: E1025 15:48:15.585057  240975 kubelet.go:2095] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized

解决方法

kubectl apply -f kube-proxy-rbac.yaml

执行完命令,竟然可以了,填坑。

参考文章:

http://blog.51cto.com/foxhound/1978145

猜你喜欢

转载自blog.csdn.net/u013355826/article/details/82790183