kubelet 创建pod时容器不能启动
我使用kubelet创建pod,镜像pull下来后,不能启动。然而,使用dockerrun命令启动镜像时,是可以的。使用kubectl describe pod dwzx-fe查看如下错误信息:FirstSeen LastSeen Count From SubobjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
6s 6s 1 {default-scheduler } Normal Scheduled Successfully assigned dwzx-fe to 127.0.0.1
6s 6s 1 {kubelet 127.0.0.1} spec.containers{dwzx-fe} Normal Created Created container with docker id d2d81802a493
6s 6s 1 {kubelet 127.0.0.1} spec.containers{dwzx-fe} Normal Started Started container with docker id d2d81802a493
6s 5s 3 {kubelet 127.0.0.1} Warning MissingClusterDNS kubelet does not have ClusterDNS IP configured and cannot create Pod using "ClusterFirst" policy. Falling back to DNSDefault policy.
6s 5s 2 {kubelet 127.0.0.1} spec.containers{dwzx-fe} Normal Pulling pulling image "114.55.72.246/library/tomcat:latest"
6s 5s 2 {kubelet 127.0.0.1} spec.containers{dwzx-fe} Normal Pulled Successfully pulled image "114.55.72.246/library/tomcat:latest"
5s 5s 1 {kubelet 127.0.0.1} spec.containers{dwzx-fe} Normal Created Created container with docker id 221747cec92e
5s 5s 1 {kubelet 127.0.0.1} spec.containers{dwzx-fe} Normal Started Started container with docker id 221747cec92e
4s 3s 2 {kubelet 127.0.0.1} spec.containers{dwzx-fe} Warning BackOff Back-off restarting failed docker container
4s 3s 2 {kubelet 127.0.0.1} Warning FailedSync Error syncing pod, skipping: failed to "StartContainer" for "dwzx-fe" with CrashLoopBackOff: "Back-off 10s restarting failed container=dwzx-fe pod=dwzx-fe_default(7f5e9744-b082-11e6-8ef5-00163e013797)"
还有一个疑惑是,使用docker logs CONTAINER ID 查看日志时,并没有输出。
麻烦各位前辈指点下。谢谢 回复 1# tcj0221
到调度的节点上查看kubelet.log日志,看看为什么失败 我也出现该问题,不知你是如何解决的?麻烦指教一二。
页:
[1]