本文介绍了Kubernetes为图片拉取设置了超时限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我得到Failed to pull image
的原因是图像拉出超时,我知道该图像在那里,我只是觉得我的私有注册表很慢,有没有办法设置图像拉出的超时限制?
I’m getting Failed to pull image
because the image pull is timing out, I know the image is there I just think my private registry is slow, is there a way to set a timeout limit on image pulls?
推荐答案
可以使用kubelet
服务的--runtime-request-timeout
选项控制超时限制.
The timeout limit can be controlled with the --runtime-request-timeout
option for the kubelet
service.
官方文档:
即使从描述中并不能真正看到它,该值仍会传递到 RemoteImageService(请参阅源代码Github),用于提取图像.
Even though this is not really visible from the description, this value is still passed down into the RemoteImageService (see source code an Github) which is used to pull the images.
希望这会有所帮助.
这篇关于Kubernetes为图片拉取设置了超时限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!