簡體   English   中英

Kubernetes 種類無法拉取鏡像

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM