<p>Hey I'm trying to get a pipeline to work with kubernetes but I keep getting <code>ErrImagePull</code></p>
<p>Earlier I was getting something along the lines <code>authentication failed</code>.
I created a secret in the namespace of the pod and referring to it in the deployment file:</p>
<pre><code>      imagePullSecrets:
        - name: &quot;registry-secret&quot; 
</code></pre>
<p>I still get <code>ErrImagePull</code> but now for different reasons. When describing the failed pod I get:</p>
<pre><code>Events:
  Type     Reason     Age                    From               Message
  ----     ------     ----                   ----               -------
  Normal   Scheduled  4m46s                  default-scheduler  Successfully assigned &lt;project&gt; to &lt;server&gt;
  Normal   Pulling    3m12s (x4 over 4m45s)  kubelet            Pulling image &quot;&lt;container_url&gt;&quot;
  Warning  Failed     3m12s (x4 over 4m45s)  kubelet            Failed to pull image &quot;&lt;container_url&gt;&quot;: rpc error: code = Unknown desc = Requesting bear token: invalid status code from registry 403 (Forbidden)
  Warning  Failed     3m12s (x4 over 4m45s)  kubelet            Error: ErrImagePull
  Warning  Failed     3m (x6 over 4m45s)     kubelet            Error: ImagePullBackOff
  Normal   BackOff    2m46s (x7 over 4m45s)  kubelet            Back-off pulling image &quot;&lt;container_url&gt;&quot;
</code></pre>
<p>I guess the Registry is returning 403, but why? Does it mean the user in <code>registry-secret</code> is not allowed to pull the image?</p>

iaquobe
<p>OP has posted in the comment that the problem is resolved:</p>
<blockquote>
<p>I found the error. So I had a typo and my secret was in fact not created in the correct namespace.</p>
</blockquote>
