Kubernetes Image Pull Failure from JFrog Registry: "Connection Reset by Peer"

Srikanth Mannepalli 0 Reputation points
2025-05-08T11:23:08.3+00:00

Hello Team,

I am encountering an issue while pulling an image from JFrog Registry into a Azure Kubernetes pod. The error message reads:

Failed to pull image "artifact.chi.com/gpm0001713-dkr-wfe-da-stage/Ga.chi.wfe.da/ghmadapter:2.4.09": failed to do request: Head "https://artifact.chi.com/v2/gmp008643: read tcp 101.1.0.107:42086->101.6.0.9:443: read: connection reset by peer

******@chi.comTroubleshooting Steps Taken ******@chi.com

So far, I have attempted the following troubleshooting steps:

  1. ******@chi.com Validated JFrog Registry Connection ******@chi.com
    • Used curl to verify connectivity: curl -v -u <JFROG_USERNAME>:<JFROG_API_KEY> https://<JFROG_REGISTRY_URL>/v2/
    • Response indicates the connection was successful.
  2. ******@chi.com Checked Registry Authentication ******@chi.com
    • Logged into JFrog Registry via Docker: docker login <JFROG_REGISTRY_URL> -u <JFROG_USERNAME> -p <JFROG_API_KEY>
    • Authentication was successful.
  3. ******@chi.com Updated Kubernetes Secrets and Deployment Configuration ******@chi.com
    • Created a Docker Registry secret: kubectl create secret docker-registry regcred --docker-server=<your-registry-server> --docker-username=<your-name> --docker-password=<your-pword> --docker-email=<your-email>
    • Updated the deployment YAML to reference the secret under imagePullSecrets.
  4. ******@chi.com Checked Kubernetes Logs ******@chi.com
    • Pod logs consistently show: Warning Failed kubelet Failed to pull image: read tcp <source-IP>:<port> -> <destination-IP>:443: read: connection reset by peer Warning ImagePullBackOff kubelet Backing off pulling image

******@chi.com Question ******@chi.com

Even after performing the above troubleshooting steps, I am still encountering the "connection reset by peer" error. What additional steps can I take to resolve this issue?

I would really appreciate any help from anyone who has faced a similar issue.

Thanks in advance.

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,404 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.