Keyan
Keyan

Reputation: 21

kubelet Failed to pull image "jenkins/jenkins:lts": rpc error: code http: request canceled while waiting for connection (Client.Timeout exceeded

Pod is not getting created, getting the following Error message

Warning Failed 52m (x135 over 12h) kubelet Failed to pull image "jenkins/jenkins:lts": rpc error: code = Unknown desc = Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

I ran a docker command from the linux command prompt # docker pull jenkins/jenkins:lts its downloading.

My pod status

        NAME                       READY   STATUS         RESTARTS   AGE
   
        jenkins-6c7786c7b6-ljvq5   0/1     ErrImagePull   0          12h

what is the issue how to resolve this? please advice

Upvotes: 0

Views: 234

Answers (1)

wiktor
wiktor

Reputation: 191

The image you are referring to exists:

https://hub.docker.com/layers/jenkins/jenkins/lts/images/sha256-2a15645303916751e9fd781fd403051199d94052d5d18be6e1b2398aab1f79c1?context=explore

So you should:

  • check connection between cluster and docker registry (use curl/telnet/ping)
  • specify the whole image with registry URL in the manifest you are using:
image: registry.hub.docker.com/jenkins/jenkins:lts

Upvotes: 0

Related Questions