<p>I have 1 master node and 1 worker node of Kubernetes. I created a local registry for my docker images and I pulled it to: <code>myiplocal:5000/xxx</code> in the master node.</p>
<p>When I create the deployment it is giving error:</p>
<blockquote>
<p>Failed to pull image &quot;myip:5000/xxx:latest&quot;: rpc error: code = Unknown desc = failed to pull and unpack image &quot;myip:5000/xxx:latest&quot;: failed to resolve reference &quot;myip:5000/xxx:latest&quot;: failed to do request: Head &quot;https://myip:5000/v2/xxx/manifests/latest&quot;: http: server gave HTTP response to HTTPS client</p>
</blockquote>
<p>I tried to pull it manually in my worker using  docker pull <code>myip:5000/xxx</code>
and it worked, so. Why it's not working when I deploy the .yaml?</p>
<p>.yaml important info:</p>
<pre><code> containers:
        - name: xxx
          image: myip:5000/xxx
          imagePullPolicy: IfNotPresent
          envFrom:
            - secretRef:
                name: xxx-secret
</code></pre>
<p>I created daemon.json in a worker using:</p>
<pre><code>{
 &quot;insecure-registries&quot;: [ &quot;myip:5000&quot; ]
}
</code></pre>
<p>The problem is that still gives me the error of https client.</p>

Albert
<p>Looks like your local registry is running on http url instead of https, and k8s is making https connection while fetching image,</p>
<p>Can you try accessing the local registry with both
secured =&gt; https://myip:5000/ and,
unsecured url =&gt; http://myip:5000/
on your browser, and check if this resolves</p>
