使用私有 Docker 注册表安装 Istio 失败。

时间:2021-08-12 04:11:00

标签: kubernetes istio docker-registry

** 错误描述 **

安装过程中出现超时错误,在 kubectl get pods -n istio-system 命令中显示 ImagePullBackOff

kubectl describe pod istiod-xxx-xxx -n istio-system

Failed to pull image "our-registry:5000/pilot:1.10.3": rpc error: code = Unknown desc = Error response from daemon: Head https://our-registry:5000/v2/pilot/manifests/1.10.3: no basic auth credentials

** 受影响的产品领域(请在所有适用的项目旁打勾)**

[x] 安装

** 预期行为 **

使用 istioctl install --set profile=demo --set hub=our-registry:5000 成功安装。

** 复现错误的步骤 **

  • 创建 istio-system 命名空间。

  • istio-system 命名空间设置 docker-registry 用户凭据。

  • istioctl manifest generate --set profile=demo --set hub=our-registry:5000 > new-generated-manifest.yaml

  • 验证其是否具有正确的 our-registry:5000 镜像。

  • 将所需的镜像拉取并推送到 our-registry:5000

  • istioctl install --set profile=demo --set hub=our-registry:5000

** 版本 **

Kubernetes:v1.21

Istio:1.10.3 / 1.7.3

** Istio 是如何安装的?**

istioctl install --set profile=demo --set hub=our-registry:5000

[参考资料]

  1. 尝试按照此处所述 设置 imagePullSecrets,但它会给出以下错误:

Json object error 2. 在此处描述了如何在图表中使用它,但不知道他们是如何应用的。

最初发布为一个 问题

0 个答案:

没有答案