部署的时候 一直处于ContainerCreating 查询日志 发现错误如下

来源:7-7 小试牛刀

慕标0226849

2018-09-12

图片描述 查看节点服务器 显示错误

tion refused’,))",)
Sep 12 11:55:09 kube-client-1 kubelet[26140]: 2018-09-12 11:55:09,154 29966 [default/nginx-deployment-5678448fff-lrfdh] ERROR CNI Error:
Sep 12 11:55:09 kube-client-1 kubelet[26140]: {
Sep 12 11:55:09 kube-client-1 kubelet[26140]: “msg”: “Unhandled Exception killed plugin”,
Sep 12 11:55:09 kube-client-1 kubelet[26140]: “cniVersion”: “0.1.0”,
Sep 12 11:55:09 kube-client-1 kubelet[26140]: “code”: 100,
Sep 12 11:55:09 kube-client-1 kubelet[26140]: “details”: null
Sep 12 11:55:09 kube-client-1 kubelet[26140]: }
Sep 12 11:55:09 kube-client-1 kubelet[26140]: E0912 11:55:09.168612 26140 cni.go:280] Error deleting network: Unhandled Exception killed plugin
Sep 12 11:55:09 kube-client-1 kubelet[26140]: E0912 11:55:09.169355 26140 remote_runtime.go:115] StopPodSandbox “fe2e750465d5669abc3be922d988150936a9fe73380d42d9ae533773ad4560e7” from runtime service failed: rpc error: code = Unknown desc = NetworkPlugin cni failed to teardown pod “nginx-deployment-5678448fff-lrfdh_default” network: Unhandled Exception killed plugin
Sep 12 11:55:09 kube-client-1 kubelet[26140]: E0912 11:55:09.169392 26140 kuberuntime_manager.go:799] Failed to stop sandbox {“docker” “fe2e750465d5669abc3be922d988150936a9fe73380d42d9ae533773ad4560e7”}
Sep 12 11:55:09 kube-client-1 kubelet[26140]: E0912 11:55:09.169423 26140 kuberuntime_manager.go:594] killPodWithSyncResult failed: failed to “KillPodSandbox” for “6a5d211e-b63c-11e8-bdc8-001c426ff194” with KillPodSandboxError: "rpc error: code = Unknown desc = NetworkPlugin cni failed to teardown pod “nginx-deployment-5678448fff-lrfdh_default” network: Unhandled Exception killed plugin"
Sep 12 11:55:09 kube-client-1 kubelet[26140]: E0912 11:55:09.169494 26140 pod_workers.go:186] Error syncing pod 6a5d211e-b63c-11e8-bdc8-001c426ff194 (“nginx-deployment-5678448fff-lrfdh_default(6a5d211e-b63c-11e8-bdc8-001c426ff194)”), skipping: failed to “KillPodSandbox” for “6a5d211e-b63c-11e8-bdc8-001c426ff194” with KillPodSandboxError: “rpc error: code = Unknown desc = NetworkPlugin cni failed to teardown pod “nginx-deployment-5678448fff-lrfdh_default” network: Unhandled Exception killed plugin”

写回答

3回答

慕标0226849

提问者

2018-09-12

要是方便 可否加微信 13301508812 

0
0

慕标0226849

提问者

2018-09-12

但是查看配置文件 也尝试client ping server 都没问题

0
0

慕标0226849

提问者

2018-09-12

应该是etcd这里通信的问题 访问http://10.211.55.4:2379/v2/members 发现无法获取两台client的信息

0
1
刘果国
看到错误里面有类似“ Connection refused,Is etcd running?”应该是连不上etcd。先排查一下etcd是否正常,如果是etcd集群的话,可以先改成单点试试,排除etcd问题。
2018-09-12
共1条回复

Docker+Kubernetes(k8s)微服务容器化实践

从开发到编排,快速,完整,深入的掌握微服务

2607 学习 · 607 问题

查看课程