Kubernetes set a timeout limit on image pulls

ぃ、小莉子 提交于 2019-12-08 11:33:31

问题


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?


回答1:


The timeout limit can be controlled with the --runtime-request-timeout option for the kubelet service.

Official documentation for this:

Timeout of all runtime requests except long running request - pull, logs, exec and attach. When timeout exceeded, kubelet will cancel the request, throw out an error and retry later. Default: 2m0s (default 2m0s)

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.

Hope this helps.



来源:https://stackoverflow.com/questions/43342014/kubernetes-set-a-timeout-limit-on-image-pulls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!