<p>When I try to deploy something with docker registry I every time view errors: </p>

<blockquote>
  <p>x509: cannot validate certificate for 10.2.10.7 because it doesn't contain any IP SANs</p>
</blockquote>

<p>Question:
How I can disable <code>ssl</code> from deploy image in docker registry to Kubernetes ?</p>

noute
<p>Assuming relaxed security is OK for your environment, a way to accomplish <em>in Kubernetes</em> what you  want is to configure Docker to connect to the private registry as an insecure registry.</p>

<p>Per the <a href="https://docs.docker.com/registry/insecure/" rel="nofollow noreferrer">doc here</a>:</p>

<blockquote>
  <p>With insecure registries enabled, Docker goes through the following
  steps:</p>
  
  <ul>
  <li>First, try using HTTPS. If HTTPS is available but the certificate is invalid, ignore the error about the certificate.</li>
  <li>If HTTPS is not available, fall back to HTTP.</li>
  </ul>
</blockquote>

<p>Notice that the change to <code>/etc/docker/daemon.json</code> described in that doc - adding "insecure-registries" configuration - has to be applied to all nodes in the Kubernetes cluster on which pods/containers can be scheduled to run. Plus, Docker has to be restarted for the change to take effect.</p>

<p>It is also to note that the above assumes the cluster uses the Docker container runtime and not some other runtime (e.g. CRI-O) that supports the Docker image format and registry.</p>
