Kubernetes pod部署错误FailedSync |同步pod时出错

时间:2017-09-24 21:22:32

标签: kubernetes

ENV: Windows 10台式机上的Vbox 两个ubuntu虚拟机,一个虚拟机是主服务器,另一个是k8s(1.7)工作服务器。

我可以看到两个节点在获取节点时“准备就绪”。但即使部署一个非常简单的nginx pod,我也从pod describe中收到了错误消息 “norm | SandboxChanged | Pod沙箱已更改,它将被终止并重新创建。”和“警告| FailedSync |错误同步窗格”。

但是如果我直接在worker上运行docker容器,容器就可以启动并运行。有人建议我可以检查什么?

k8s-master@k8smaster-VirtualBox:~$ **kubectl get pods** NAME          
READY     STATUS             RESTARTS   AGE
movie-server-1517284798-lbb01   0/1       CrashLoopBackOff   6        
16m

k8s-master@k8smaster-VirtualBox:~$ **kubectl describe pod
movie-server-1517284798-lbb01**
--- clip ---  kubelet, master-virtualbox       spec.containers{movie-server}   Warning FailedError: failed to start
container "movie-server": Error response from daemon:
{"message":"cannot join network of a non running container:
3f59947dbd404ecf2f6dd0b65dd9dad8b25bf0c418aceb8cf666ad0761402b53"}

kubelet, master-virtualbox       spec.containers{movie-server}  
Warning BackOffBack-off restarting failed container

kubelet, master-virtualbox                                      Normal
SandboxChanged          Pod sandbox changed, it will be killed and
re-created.

kubelet, master-virtualbox      spec.containers{movie-server}   Normal
PulledContainer image "nancyfeng/movie-server:0.1.0" already present
on machine

kubelet, master-virtualbox       spec.containers{movie-server}  
Normal  CreatedCreated container

kubelet, master-virtualbox                                      
Warning FailedSync              Error syncing pod

kubelet, master-virtualbox       spec.containers{movie-server}  
Warning FailedError: failed to start container "movie-server": Error
response from daemon: {"message":"cannot join network of a non running
container:
72ba77b25b6a3969e8921214f0ca73ffaab4c82d8a2852e3d1b1f3ac5dde6ce1"}
--- clip ---

0 个答案:

没有答案