Kubernetes pod陷入等待状态

时间:2016-07-08 20:35:25

标签: kubernetes

尝试启动此广告

apiVersion: v1
kind: Pod
metadata:
  name: tinyproxy
spec:
  containers:
    - name: master
      image: asdrepo.isus.emc.com:8091/francisbesset/tinyproxy
      env:
        - name: MASTER
          value: "true"
      ports:
        - containerPort: 6379
      resources:
        limits:
          cpu: "0.1"
      volumeMounts:
        - mountPath: /tinyproxy-data
          name: data
  volumes:
    - name: data
      emptyDir: {}

这会陷入待定状态。我查看了故障排除指南,但此pod似乎没有任何事件

$ kubectl describe pods tinyproxy
Name:       tinyproxy
Namespace:  default
Node:       /
Labels:     name=tinyproxy
Status:     Pending
IP:
Controllers:    <none>
Containers:
  master:
    Image:  asdrepo.isus.emc.com:8091/francisbesset/tinyproxy
    Port:   6379/TCP
    QoS Tier:
      cpu:  Guaranteed
      memory:   BestEffort
    Limits:
      cpu:  100m
    Requests:
      cpu:  100m
    Environment Variables:
      MASTER:   true
Volumes:
  data:
    Type:   EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:
No events.

另外

$ kubectl get events
FIRSTSEEN   LASTSEEN   COUNT     NAME                                                    KIND      SUBOBJECT   TYPE      REASON                  SOURCE                                                               MESSAGE
13m         13m        1         10.0.0.5                                                Node                  Normal    Starting                {kubelet 10.0.0.5}                                                   Starting kubelet.
13m         13m        2         10.0.0.5                                                Node                  Warning   MissingClusterDNS       {kubelet 10.0.0.5}                                                   kubelet does not have ClusterDNS IP configured and cannot create Pod using "ClusterFirst" policy. pod: "kube-proxy-10.0.0.5_kube-system(9fa6e0ea64b9f19ad6996367402408eb)". Falling back to DNSDefault policy.
13m         13m        1         10.0.0.5                                                Node                  Normal    NodeHasSufficientDisk   {kubelet 10.0.0.5}                                                   Node 10.0.0.5 status is now: NodeHasSufficientDisk
13m         13m        1         10.0.0.5                                                Node                  Normal    Starting                {kubelet 10.0.0.5}                                                   Starting kubelet.
13m         13m        1         10.0.0.5                                                Node                  Normal    NodeHasSufficientDisk   {kubelet 10.0.0.5}                                                   Node 10.0.0.5 status is now: NodeHasSufficientDisk
13m         13m        1         k8-dvawxybzux-0-a7m3diiryehx-kube-minion-itahxn4icom6   Node                  Normal    Starting                {kube-proxy k8-dvawxybzux-0-a7m3diiryehx-kube-minion-itahxn4icom6}   Starting kube-proxy.

代理似乎正在运行且未重新启动

bash-4.3# docker ps
CONTAINER ID        IMAGE                                       COMMAND                  CREATED             STATUS              PORTS               NAMES
d6dd779b301f        gcr.io/google_containers/hyperkube:v1.2.0   "/hyperkube proxy --m"   15 minutes ago      Up 15 minutes                           k8s_kube-proxy.d87e83d4_kube-proxy-10.0.0.5_kube-system_9fa6e0ea64b9f19ad6996367402408eb_caae92ac
8191770f15d9        gcr.io/google_containers/pause:2.0          "/pause"                 15 minutes ago      Up 15 minutes                           k8s_POD.6059dfa2_kube-proxy-10.0.0.5_kube-system_9fa6e0ea64b9f19ad6996367402408eb_e4da5a30

如何调试?

1 个答案:

答案 0 :(得分:0)

看起来调度程序服务没有启动(这是在openstack VM中)。所有服务都应该自动配置和启动。这在我手动启动服务后起作用。