Kubernetes安啟過程中錯誤(Unable to connect to the server: dial tcp 201.22.0.34:443: getsockopt: operation )
阿新 • • 發佈:2019-01-26
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
執行完命令,竟然可以了,填坑。
參考文章: