[英]Kubernetes kind not able to pull image
我正在使用kind
在我的本地设置 kubernetes 集群我已经通过使用下面的命令kind load docker-image redis:5.0.7 --name kind
加载了redis:5.0.7
图像以进行种类第一次它给了我成功
现在它无法在部署 pod 时拉/加载该图像。 下面是我的 pod 定义
apiVersion: v1
kind: Pod
metadata:
name: redis-pod
labels:
app: redis
spec:
containers:
- name: redis-ctr
image: reids:5.0.7
imagePullPolicy: IfNotPresent
我得到以下错误
Warning Failed 4s kubelet, kind-control-plane Failed to pull image "reids:5.0.7": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/library/reids:5.0.7": failed to resolve reference "docker.io/library/reids:5.0.7": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
当我为我的自定义图像尝试类似的步骤时,它起作用了,但对于 redis insufficient_scope: authorization failed
即使在实物文档中也提到,当您在加载图像时未提及集群名称时会出现此问题,但我已正确提供名称
谁能帮帮我吗 ?
谢谢
我猜你放错了图片
reids:5.0.7
在的地方
redis:5.0.7
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.