title: kubernetes dones't reach internal registry
body: <p>I've deployed an docker registry inside my kubernetes:</p>
  
  <pre><code>$ kubectl get service
  NAME                       TYPE        CLUSTER-IP    EXTERNAL-IP   PORT(S)   AGE
  registry-docker-registry   ClusterIP   10.43.39.81   &lt;none&gt;        443/TCP   162m
  </code></pre>
  
  <p>I'm able to pull images from my machine (service is exposed via an ingress rule):</p>
  
  <pre><code>$ docker pull registry-docker-registry.registry/skaffold-covid-backend:c5dfd81-dirty@sha256:76312ebc62c4b3dd61b4451fe01b1ecd2e6b03a2b3146c7f25df3d3cfb4512cd
  ...
  Status: Downloaded newer image for registry-do...
  </code></pre>
  
  <p>When I'm trying to test it in order to deploy my image into the same kubernetes:</p>
  
  <pre><code>apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: covid-backend
    namespace: skaffold
  spec:
    replicas: 3
    selector:
      matchLabels:
        app: covid-backend
    template:
      metadata:
        labels:
          app: covid-backend
      spec:
        containers:
        - image: registry-docker-registry.registry/skaffold-covid-backend:c5dfd81-dirty@sha256:76312ebc62c4b3dd61b4451fe01b1ecd2e6b03a2b3146c7f25df3d3cfb4512cd
          name: covid-backend
          ports:
          - containerPort: 8080
  </code></pre>
  
  <p>Then, I've tried to deploy it:</p>
  
  <pre><code>$ cat pod.yaml | kubectl apply -f -
  </code></pre>
  
  <p>However, kubernetes isn't able to reach registry:</p>
  
  <p>Extract of <code>kubectl get events</code>:</p>
  
  <pre><code>6s          Normal    Pulling             pod/covid-backend-774bd78db5-89vt9    Pulling image "registry-docker-registry.registry/skaffold-covid-backend:c5dfd81-dirty@sha256:76312ebc62c4b3dd61b4451fe01b1ecd2e6b03a2b3146c7f25df3d3cfb4512cd"
  1s          Warning   Failed              pod/covid-backend-774bd78db5-89vt9    Failed to pull image "registry-docker-registry.registry/skaffold-covid-backend:c5dfd81-dirty@sha256:76312ebc62c4b3dd61b4451fe01b1ecd2e6b03a2b3146c7f25df3d3cfb4512cd": rpc error: code = Unknown desc = failed to pull and unpack image "registry-docker-registry.registry/skaffold-covid-backend@sha256:76312ebc62c4b3dd61b4451fe01b1ecd2e6b03a2b3146c7f25df3d3cfb4512cd": failed to resolve reference "registry-docker-registry.registry/skaffold-covid-backend@sha256:76312ebc62c4b3dd61b4451fe01b1ecd2e6b03a2b3146c7f25df3d3cfb4512cd": failed to do request: Head https://registry-docker-registry.registry/v2/skaffold-covid-backend/manifests/sha256:76312ebc62c4b3dd61b4451fe01b1ecd2e6b03a2b3146c7f25df3d3cfb4512cd: dial tcp: lookup registry-docker-registry.registry: Try again
  1s          Warning   Failed              pod/covid-backend-774bd78db5-89vt9    Error: ErrImagePull
  </code></pre>
  
  <p>As you can see, kubernetes is not able to get access to the internal deployed registry...</p>
  
  <p>Any ideas?</p>