当我使用kubectl设置映像来更新pod中的容器以便不删除pod时,我的k8s群集遇到了一些麻烦。
然后,出现一些错误。我的仪表板上的事件表明,一次又一次地重试该错误。
Error syncing pod, skipping: failed to "KillContainer" for "usergraph1-test" with KillContainerError: "rpc error: code = 4 desc = context deadline exceeded"
我的Kubernetes的版本为1.7
这是我的kubelet日志:
E0926 17:59:25.041040 18679 remote_runtime.go:224] StopContainer "751ba8d84ea5495987cef77ad3241f4753cf042689842966c2a97f439ed78728" from runtime service failed: rpc error: code
= 4 desc = context deadline exceeded
E0926 17:59:25.041279 18679 kuberuntime_container.go:611] Container "docker://751ba8d84ea5495987cef77ad3241f4753cf042689842966c2a97f439ed78728" termination failed with gracePer
iod 30: rpc error: code = 4 desc = context deadline exceeded
E0926 17:59:25.041362 18679 kuberuntime_manager.go:579] killContainer "usergraph1-test"(id={"docker" "751ba8d84ea5495987cef77ad3241f4753cf042689842966c2a97f439
ed78728"}) for pod "usergraph1-test_default(d8d1ab14-e03a-11e9-8496-a4dcbe00d64a)" failed: rpc error: code = 4 desc = context deadline exceeded
E0926 17:59:25.041444 18679 pod_workers.go:182] Error syncing pod d8d1ab14-e03a-11e9-8496-a4dcbe00d64a ("usergraph1-test_default(d8d1ab14-e03a-11e9-8496-a4dcbe
00d64a)"), skipping: failed to "KillContainer" for "usergraph1-test" with KillContainerError: "rpc error: code = 4 desc = context deadline exceeded"
我找不到我的Docker守护程序日志。
我的docker版本是:
Client:
Version: 1.12.6
API version: 1.24
Package version: docker-1.12.6-61.git85d7426.el7.centos.x86_64
Go version: go1.8.3
Git commit: 85d7426/1.12.6
Built: Tue Oct 24 15:40:21 2017
OS/Arch: linux/amd64
Server:
Version: 1.12.6
API version: 1.24
Package version: docker-1.12.6-61.git85d7426.el7.centos.x86_64
Go version: go1.8.3
Git commit: 85d7426/1.12.6
Built: Tue Oct 24 15:40:21 2017
OS/Arch: linux/amd64
花费大量时间查找解决方案使我觉得是docker导致了此问题。但是我不知道如何解决。