GKE集群的一个节点无法从dockerhub提取映像 [英] One node for a GKE cluster cannot pull image from dockerhub

查看:102
本文介绍了GKE集群的一个节点无法从dockerhub提取映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一件很担心的事情.

This is a very wried thing.

我创建了一个具有3个节点的节点池的私有 GKE集群.然后,我有一个带有3个吊舱的副本集.其中一些吊舱将被安排到一个节点上.

I created a private GKE cluster with a node pool of 3 nodes. Then I have a replica set with 3 pods. some of these pods will be scheduled to one node.

所以这些吊舱之一总是得到ImagePullBackOff,我检查了错误

So one of these pods always get ImagePullBackOff, I check the error

Failed to pull image "bitnami/mongodb:3.6": rpc error: code = Unknown desc = Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

排定到其余两个节点的Pod可以很好地工作.

And the pods scheduled to the remaining two nodes work well.

我ssh到那个节点,运行docker pull,一切都很好.我找不到其他方法来解决此错误.

I ssh to that node, run docker pull and everything is fine. I cannot find another way to troubleshoot this error.

我尝试draindelete该节点,并让群集重新创建该节点.但它仍然无法正常工作.

I tried to drain or delete that node and let the cluster to recreate the node. but it is still not working.

请帮助我.

更新: 从GCP 文档,它将无法从Docker集线器中拉取图像.

Update: From GCP documentation, it will fail to pull images from the docker hub.

最奇怪的是,只有一个节点无法拉出图像.

BUT the weirdest thing is ONLY ONE node is unable to pull the images.

推荐答案

Kubernetes 1.11

确保不是您的情况

这篇关于GKE集群的一个节点无法从dockerhub提取映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆