<p>My pod does the following:</p>

<blockquote>
  <p>Warning  Failed                 21m (x4 over 23m)     kubelet, 10.76.199.35  Failed to pull image "registryname/image:version1.2": rpc error: code = Unknown desc = Error response from daemon: unauthorized: authentication required</p>
</blockquote>

<p>but other images will work. The output of</p>

<pre><code>ibmcloud cr images
</code></pre>

<p>doesn't show anything different about the images that don't work. What could be going wrong here?</p>

<p>Given this is in kubenetes and you can see the image in <code>ibmcloud cr images</code> it most likely going to be a misconfiguration of your imagePullSecrets. </p>

<p>If you do <code>kubectl get pod &lt;pod-name&gt; -o yaml</code> you will be able to see the what <code>imagePullSecrets</code> are in scope for the pod and check if it looks correct (could be worth comparing it to a pod that is working). </p>

<p>It's worth noting that if your cluster is an instance in the IBM Cloud Kubernetes Service a default imagePullSecret for your account is added to the <code>default</code> namespace and therefore if you are running the pod in a different Kubenetes namespace you will need to do additional steps to make that work. This is a good place to start for information on this topic.</p>

<p><a href="https://console.bluemix.net/docs/containers/cs_images.html#other" rel="nofollow noreferrer">https://console.bluemix.net/docs/containers/cs_images.html#other</a> </p>
