kubernetes拉图像获取错误“ ImagePullBackOff”

时间:2019-12-24 09:11:35

标签: docker kubernetes

我将不得不运行任何容器/ POD。

已在此处查看与ImagePullBackOff问题相关的所有答案,但找不到任何相关的解决方案。

请参见以下输出:-

shashi@master:~$ kubectl run nginx --image=nginx

kubectl run --generator=deployment/apps.v1 is DEPRECATED and will be removed in a future version. Use kubad.

deployment.apps/nginx created

shashi@master:~$ kubectl get pods --all-namespaces

NAMESPACE     NAME                             READY   STATUS             RESTARTS   AGE

default       nginx-6db489d4b7-qsqz8           0/1     ImagePullBackOff   0          33s
shashi@master:~$ kubectl describe pods nginx-6db489d4b7-n9mmd

Name:         nginx-6db489d4b7-n9mmd

Namespace:    default

Priority:     0

Node:         client1/10.200.13.119

Start Time:   Tue, 24 Dec 2019 10:30:51 +0200

Labels:       pod-template-hash=6db489d4b7

              run=nginx

Annotations:  <none>

Status:       Pending

IP:           10.244.1.16

IPs:

  IP:           10.244.1.16

Controlled By:  ReplicaSet/nginx-6db489d4b7

Containers:

  nginx:

    Container ID:

    Image:          nginx

    Image ID:

    Port:           <none>

    Host Port:      <none>

    State:          Waiting

      Reason:       ErrImagePull

    Ready:          False

    Restart Count:  0

    Environment:    <none>

    Mounts:

      /var/run/secrets/kubernetes.io/serviceaccount from default-token-hpbmb (ro)

Conditions:

  Type              Status

  Initialized       True

  Ready             False

  ContainersReady   False

  PodScheduled      True

Volumes:

  default-token-hpbmb:

    Type:        Secret (a volume populated by a Secret)

    SecretName:  default-token-hpbmb

    Optional:    false

QoS Class:       BestEffort

Node-Selectors:  <none>

Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s

                 node.kubernetes.io/unreachable:NoExecute for 300s

Events:

  Type     Reason          Age                    From               Message

  ----     ------          ----                   ----               -------

  Normal   Scheduled       <unknown>              default-scheduler  Successfully assigned default/nginx-6db489d4b7-n9mmd to client1

  Warning  Failed          33m                    kubelet, client1   Failed to pull image "nginx": rpc error: code = Unknown desc = Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 127.0.1.1:53: read udp 127.0.0.1:43144->127.0.1.1:53: i/o timeout

  Normal   SandboxChanged  32m (x5 over 33m)      kubelet, client1   Pod sandbox changed, it will be killed and re-created.

  Warning  Failed          32m                    kubelet, client1   Failed to pull image "nginx": rpc error: code = Unknown desc = Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 127.0.1.1:53: read udp 127.0.0.1:41150->127.0.1.1:53: i/o timeout

  Normal   BackOff         32m (x6 over 33m)      kubelet, client1   Back-off pulling image "nginx"

  Normal   Pulling         32m (x3 over 33m)      kubelet, client1   Pulling image "nginx"

  Warning  Failed          32m (x3 over 33m)      kubelet, client1   Error: ErrImagePull

  Warning  Failed          3m18s (x127 over 33m)  kubelet, client1   Error: ImagePullBackOff

shashi@master:~$

所以请提出前进的方向。

此致

Shashi Kant

0 个答案:

没有答案