<p>Im trying to create a replication Controller based on an image that I created locally. But when I try to create the rc it gives error <code>ImagePullBackOff</code>. I have created a cluster locally using <code>minikube</code></p>

<p>Here is my <code>.yaml</code> file:</p>

<pre><code>apiVersion: v1
kind: ReplicationController
metadata:
  name: example
spec:
  replicas: 1
  selector:
    app: ayonAppserver
  template:
    metadata:
      name: example.com
      labels:
        app: ayonAppserver
    spec:
      containers:
      - name: something
        image: nktest:10
        resources:
          limits:
            cpu: 500m
            memory: 1024Mi
</code></pre>

<p>Command that I run to create the rc:</p>

<pre><code>kubectl create -f &lt;file&gt;
</code></pre>

<p>When Im running <code>docker images</code> I see the image in the list</p>

<pre><code>REPOSITORY                TAG                 IMAGE ID                CREATED             SIZE
nktest                    10                  e60b3c9c3bc6        10 hours ago        425 MB
</code></pre>

<p>when I run <code>kubectl get pods</code></p>

<pre><code>NAME            READY     STATUS             RESTARTS   AGE
example-gr9v2   0/1       ImagePullBackOff   0          2m
</code></pre>

<p>I have tried to run the docker image locally, and it runs fine</p>

<pre><code>docker run -d --name="testAyonApp1" nktest:10
</code></pre>

<p>Can anyone help to solve this?</p>

<p>So thanks to @BMW for helping me with the issue. The problem was that I was thinking since I created the cluster using <code>minikube</code> (locally) every image that I create in my local machine will be visible to minikube cluster. But an image is visible only when its present inside the node. Thats why every time I wanted to build it, it was looking for downloading the image.</p>

<p>I have now created a dockerhub account and pushed the image in the hub. And now things are working just fine. </p>
