<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>As cluster can pull the image from the public registry, I assume you are pulling docker images from a private registry and k8s cluter does not know the secrets.
Please follow the following link to provide the required credentials and accesses:</p>
<p><a href="https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/" rel="nofollow noreferrer">Pull an Image from a Private Registry</a></p>
