Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kubernetes ImagePullBackOff Errors when pulling docker images

I have an image of size of 6.5GB in the Google Container Registry. When I try to pull the image on a Kubernetes cluster node(worker node) via a deployment, an error occurs: ErrImagePull(or sometimes ImagePullBackOff). I used the describe command to see the error in detail. The error is described as Failed to pull image "gcr.io/.../.. ": rpc error: code = Canceled desc = context canceled What may be the issue and how to mitigate it?

like image 971
Ajay Avatar asked Aug 16 '18 06:08

Ajay


1 Answers

It seems that the kubelet expects a updates on progress during the pull of a large image but this currently isn't available by default with most container registries. It's not ideal behaviour but it appears people have been able to work around it from reading the responses on https://github.com/kubernetes/kubernetes/issues/59376 and Kubernetes set a timeout limit on image pulls by adjusting the timeout

like image 143
Ryan Dawson Avatar answered Oct 06 '22 23:10

Ryan Dawson