<p>I'm creating kubevirt in minikube, initially kubevirt-operator.yaml fails with ImagePullBackOff. After I added secret in the yaml</p>
<pre><code>imagePullSecrets:
  - name: regcred
containers:
</code></pre>
<p>all my virt-operator* started to run. virt-api* pods still shows ImagePullBackOff.
The error comes out as</p>
<pre><code>Events:
  Type     Reason     Age                    From               Message
  ----     ------     ----                   ----               -------
  Normal   Scheduled  27m                    default-scheduler  Successfully assigned kubevirt/virt-api-787487d9cd-t68qf to minikube
  Normal   Pulling    25m (x4 over 27m)      kubelet            Pulling image &quot;us-ashburn-1.ocir.io/xxx/virt-api:v0.54.0&quot;
  Warning  Failed     25m (x4 over 27m)      kubelet            Failed to pull image &quot;us-ashburn-1.ocir.io/xxx/virt-api:v0.54.0&quot;: rpc error: code = Unknown desc = Error response from daemon: pull access denied for us-ashburn-1.ocir.io/xxx/virt-api, repository does not exist or may require 'docker login': denied: Anonymous users are only allowed read access on public repos
  Warning  Failed     25m (x4 over 27m)      kubelet            Error: ErrImagePull
  Warning  Failed     25m (x6 over 27m)      kubelet            Error: ImagePullBackOff
  Normal   BackOff    2m26s (x106 over 27m)  kubelet            Back-off pulling image &quot;us-ashburn-1.ocir.io/xxx/virt-api:v0.54.0&quot; 
</code></pre>
<p><strong>Manually, I can pull the same image with docker login.</strong> Any help would be much appreciated. Thanks</p>

<p>This docker image looks like it is in a private registry(and from oracle). And I assume the regcred is not correct. Can you login there with docker login? if so you can create regcred secret like this</p>
<pre><code>$ kubectl create secret docker-registry regcred --docker-server=&lt;region-key&gt;.ocir.io --docker-username='&lt;tenancy-namespace&gt;/&lt;oci-username&gt;' --docker-password='&lt;oci-auth-token&gt;' --docker-email='&lt;email-address&gt;'

</code></pre>
<p>Also check this oracle tutorial: <a href="https://www.oracle.com/webfolder/technetwork/tutorials/obe/oci/oke-and-registry/index.html" rel="nofollow noreferrer">https://www.oracle.com/webfolder/technetwork/tutorials/obe/oci/oke-and-registry/index.html</a></p>
