Kubernetes set a timeout limit on image pulls

2019-06-13 17:32发布

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条回答
该账号已被封号
2楼-- · 2019-06-13 18:08

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.

查看更多
登录 后发表回答