Kubernetes Image Pull Failure from JFrog Registry: "Connection Reset by Peer"
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:
- ******@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.
- ******@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.
- ******@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.
- ******@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.