我使用kind
在本地安装kubernetes集群,我第一次使用下面的命令kind load docker-image redis:5.0.7 --name kind
加载了redis:5.0.7
映像,这给了我成功的机会
现在它无法在部署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
有效。
即使在类文件中也提到,当您在将映像加载为类时没有提到集群名称,但我提供了正确的名称,也会出现此问题。
有人能帮帮我吗?
谢谢
发布于 2019-12-03 06:37:42
我猜你把照片放错了
reids:5.0.7
代替.
redis:5.0.7
https://stackoverflow.com/questions/59151098
复制相似问题