<p>I have a simple setup with docker-desktop for mac, with the Kubernetes cluster that comes with it.</p>
<p>Every time I run <code>skaffold dev</code>, with <code>imagePullPolicy: Never</code>, an image gets created, but I still get an error when deploying the dirty image to the Kubernetes cluster:</p>
<pre><code>ErrImageNeverPull: Container image &quot;user/test:bf13343a4b431df2b7df84f58ede9229bd3d868a4b10147fff04eae8a7adc0cd&quot; is not present with pull policy of Never
</code></pre>
<p>Can anyone help me debug this? I have no idea how to investigate this further. But <code>skaffold</code> is not deploying my dirty image to the Kubernetes cluster. And everyone is suggesting adding <code>imagePullPolicy: Never</code> to my <code>deployment.yaml</code> but that doesn't fix anything</p>
<p>The skaffold.yml content:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: skaffold/v2beta5
kind: Config
metadata:
  name: test
build:
  artifacts:
  - image: user/test
deploy:
  kubectl:
    manifests:
    - kube/postgres/postgres-configmap.dev.yaml
    - kube/redis/redis-configmap.secret.yaml
    - kube/web/web-configmap.dev.yaml
    - kube/elasticsearch/elasticsearch-storage.dev.yaml
    - kube/postgres/postgres-storage.dev.yaml
    - kube/cable/cable-service.yaml
    - kube/dashboard.yaml
    - kube/cable/cable-deployment.yaml
    - kube/nginx/load-balancer.dev.yaml
    - kube/redis/redis-storage.yaml
    - kube/sidekiq/sidekiq-deployment.yaml
    - kube/web/web-deployment.yaml
    - kube/web/web-service.dev.yaml
    - kube/web/web-migration.yaml
    - kube/web/web-seed.yaml
</code></pre>

<p>The only thing I can think of is that your <code>skaffold.yaml</code> doesn't match the image name:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: skaffold/v2beta5
kind: Config
build:
  artifacts:
  - image: user/test 👈 does this match?
deploy:
  kubectl:
    manifests:
      - deployment.yaml
</code></pre>
<p>Otherwise, something might be corrupted with your docker + K8s instance. You can try:</p>
<ul>
<li>Enable/Disable K8s in Docker</li>
<li>Use <a href="https://kind.sigs.k8s.io/" rel="nofollow noreferrer">KinD</a></li>
</ul>
