首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用helm部署grafana

无法使用helm部署grafana
EN

DevOps用户
提问于 2023-03-13 06:28:45
回答 1查看 37关注 0票数 0

我是地堑和普罗米修斯的新手,从最近几天开始研究。我有一些问题。我建立了一个新的地堑形象,我正在使用官方的舵回购安装它。在使用官方图像的时候,它的动作,但是在使用我的图像时,Pod显示了错误。Failed to pull image "my-repository/grafana:9.4.1": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/my-repository/grafana:9.4.1": failed to resolve reference "docker.io/my-repository/grafana:9.4.1": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed在检查时,我知道我需要添加imagePullSecret,但是在添加之后,我遇到了问题。这就是我加了图像的秘密

代码语言:javascript
复制
#Overrides the Grafana image tag whose default is the chart appVersion 
 tag: "9.4.1" 
 sha: ""
 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

这里的问题是什么,任何见解都会有帮助。

尝试增加码头的秘密,很少有凹痕,但仍然有相同的问题。

EN

回答 1

DevOps用户

发布于 2023-03-13 09:08:13

在YAML中,您已经粘贴了pullSecrets行,并对- myRegistrKeySecretName行进行了注释(使用了#);如果您使用了所粘贴的内容,这将是问题的根源。

否则,我将检查以下内容:

  1. 实际上,您已经使用相同的名称和标记将图像推送到docker.io。
  2. ImagePullSecret实际上是有效的。
  3. 您已经在规范中正确地命名了它(例如,myRegistrKeySecretName似乎有一个错误)
票数 0
EN
页面原文内容由DevOps提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://devops.stackexchange.com/questions/17554

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档