0

I have a private cluster created in GKE and gitlab is running as a pod in this cluster. Here, nodeport is not sending the traffic to service port and hence unable to push images to gitlab.

Error response from daemon: Get http://localhost:32121/v2/: net/http: request canceled (Client.Timeout exceeded while awaiting

Can we connect to private docker repo using localhost from within a private cluster.

  • Could you share more info about your environment? Services and pods might be helpful. – kool Jan 23 '20 at 10:42
  • Gitlab pod is running on the cluster as LoadBalancer service. CLUSTER-IP:10.28.0.129 External-IP 104.154.84.33 Port: 80:30539/TCP,8085:31685/TCP,222:30716/TCP,8223:32121/TCP The commands and the errors are below: sudo docker login -u xxxx -p xxxx localhost:32121 --"Error response from daemon: Get http://localhost:32121/v2/: dial tcp 127.0.0.1:32121: connect: connection refused" – Meghana B Srinath Jan 23 '20 at 11:55
  • sudo docker login -u xxxx -p xxxx 104.154.84.33:32121 --WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error response from daemon: Get https://104.154.84.33:32121/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) – Meghana B Srinath Jan 23 '20 at 11:55
  • Did you follow this link? https://docs.docker.com/registry/insecure/ – kool Jan 23 '20 at 15:00
  • Yes, we had tried this, but ended up with the same error, ever after restarting docker. – Meghana B Srinath Jan 23 '20 at 17:50
  • can you share output from `kubectl get svc`? If your services are create in different namespace please include it. – kool Jan 29 '20 at 11:06

0 Answers0