<p>I'm new to grafana and prometheus, started working on it from last few days. I'm having some issues. I build a new grafana image and I am using the official helm repo to install it. On using the official image its wotking but on using my image the Pod is showing error. <code>Failed to pull image &quot;my-registry/grafana:9.4.1&quot;: rpc error: code = Unknown desc = failed to pull and unpack image &quot;docker.io/my-registry/grafana:9.4.1&quot;: failed to resolve reference &quot;docker.io/my-registry/grafana:9.4.1&quot;: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed</code>  On checking I understood that I need to add imagePullSecret but after add that too i'm having the issue.
This is where I have added image pull secret</p>
<pre><code>repository: my-registry/grafana
#Overrides the Grafana image tag whose default is the chart appVersion 
 tag: &quot;9.4.1&quot; 
 sha: &quot;&quot;
 pullPolicy: IfNotPresent
#Optionally specify an array of imagePullSecrets.
 #Secrets must be manually created in the namespace.
 #ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
 #Can be templated.
 #pullSecrets:
 #- myRegistrKeySecretName
imagePullSecrets:
-name: secretname
</code></pre>
<p>What might be the issue here, any insights will be helpful</p>
<p>Tried adding docker secret with few indentation but still having same issue.</p>

Alexy Pulivelil
<p>I'm guessing your problem is the name of the image. I take it that you used your account to create a repository called &quot;my-repository&quot; in Docker Hub? In that case, the name of the image should be:</p>
<pre><code>&lt;your_dockerhub_username&gt;/my-repository
</code></pre>
<p>not</p>
<pre><code>my-repository/grafana
</code></pre>
<p>unless your Docker Hub username is <code>my-repository</code> and the name of the repository you created was <code>grafana</code>.</p>
<p>To verify this, go to</p>
<pre><code>https://hub.docker.com/repositories/&lt;your_user_name&gt;
</code></pre>
<p>where you will see a list of all repositories. Go into the repo you are using there and you will see a Docker command provided that includes the name of your image. Something like:</p>
<pre><code>docker push username/reponame:tagname
</code></pre>
<p>That is the image you should be using.</p>
