<p>I've a K8s cluster on Linode and another VM for operating.</p>
<p>I've installed Docker &amp; K8s on operating VM to build images and do deployment on cluster.</p>
<p>Note: I haven't installed minikube on this VM.</p>
<p><strong>I'm able to build my image but not able to pull that from local registry to k8s pod.</strong></p>
<p>Below are the things I've already done &amp; tried to solve the problem.</p>
<ol>
<li>Create and push docker image to local registry.</li>
<li>Run docker container from the image, but not getting pulled in K8s.</li>
<li>Created &quot;regcred&quot; secret and used it in deployment yaml.</li>
<li>create image and push with VM's IP(10.128.234.123:5000/app-frontend) and use the same in deployment image reference.</li>
<li>Change image pull policy to IfNotPresent</li>
</ol>
<p>I get the following error in pod description:</p>
<pre><code>  Warning  ErrImageNeverPull  11s (x4 over 13s)  kubelet            Container image &quot;localhost:5000/app-frontend&quot; is not present with pull policy of Never
  Warning  Failed             11s (x4 over 13s)  kubelet            Error: ErrImageNeverPull
</code></pre>
<p>Below is my deployment yaml:</p>
<pre><code>  apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: app-frontend
      labels:
        app: app-frontend
    spec:
      replicas: 1
      selector:
        matchLabels:
          app: app-frontend
      template:
        metadata:
          labels:
            app: app-frontend
        spec:
          containers:
            - name: app-frontend
              image: localhost:5000/docker-image
              imagePullPolicy: Never
              ports:
                - containerPort: 80
          imagePullSecrets:
          - name: regcred
</code></pre>
<p>Any help or guidance will be grateful.</p>

Jamshed
<p>In the Docs I see this</p>
<blockquote>
<p>While with imagePullPolicy set to Never, never pull the image.</p>
</blockquote>
<p>Try this instead</p>
<pre><code>imagePullPolicy: IfNotPresent
</code></pre>
<p>Also</p>
<pre><code>image: localhost:5000/docker-image
</code></pre>
<p>But in point 4. you specify an IP</p>
