Simon I
Simon I

Reputation: 3586

Kubernetes set a timeout limit on image pulls

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

Answers (1)

pagid
pagid

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

Related Questions