Reputation: 3586
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?
Upvotes: 7
Views: 17407
Reputation: 13867
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.
Upvotes: 6