【发布时间】:2021-07-12 06:20:13
【问题描述】:
我已自定义 coredns 映像并将其推送到我的 azure 容器注册表 (ACR)。
现在在 k3s 安装后的默认 coredns pod 中,我想使用 my_azure_acr_repo/proj/customize-coredns:latest 图像 而不是 rancher/coredns-coredns:1.8.3。所以我编辑了 coredns 部署kubectl edit deploy coredns -n kube-system 并将我的 acr 图像替换为 Rancher 之一。但是现在 coredns pod 无法提取我的 acr 图像并在 pod 描述中给出错误:
Failed to pull image "my_azure_acr_repo/proj/customize-coredns:latest": rpc error:
code = Unknown desc = failed to pull and unpack image "my_azure_acr_repo/proj/customize-coredns:latest":
failed to resolve reference "my_azure_acr_repo/proj/customize-coredns:latest": failed to
authorize: failed to fetch anonymous token: unexpected status: 401 Unauthorized
如何验证 acr 图像,以便 pod 拉取它?
【问题讨论】:
标签: kubernetes kubernetes-pod azure-container-registry coredns