错误描述
安装出现超时错误并kubectl get pods -n istio-system
显示 ImagePullBackOff
kubectl describe pod istiod-xxx-xxx -n istio-system
无法拉取镜像“our-registry:5000/pilot:1.10.3”:rpc error: code = Unknown desc = 来自守护进程的错误响应:Head https://our-registry:5000/v2/pilot/manifests/1.10。 3:没有基本的认证凭证
受影响的产品区域(请在所有适用项中打 X)
[x] 安装
预期行为
安装成功 istioctl install --set profile=demo --set hub=our-registry:5000
重现错误的步骤
创建istio-system
命名空间。
docker-registry
为istio-system
命名空间设置用户凭据。
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
版本
州长:v1.21
相同:1.10.3 / 1.7.3
Istio 是如何安装的?
istioctl install --set profile=demo --set hub=our-registry:5000
[参考]
Json object error 2.这里描述在图表中使用它,但不知道他们如何应用它。
最初发布为一个问题
有两种方法可以解决这个问题。
istioctl install
使用istioctl install
提供带有 docker-registry 身份验证详细信息的机密--set values.global.imagePullSecrets
。像这样
istioctl install [other options] --set values.global.imagePullSecrets[0]=<auth-secret>
<auth-secret>
先前在集群上创建的秘密在哪里。
您可以在此处阅读有关在 docker 存储库中使用机密的更多信息
使用操作员安装 Istio,从私有注册表,您必须传递正确的 YAML:
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
...
spec:
profile: demo #as an example
values:
global:
imagePullSecrets:
- <auth-secret>
...
同样,<auth-secret>
必须事先创建。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句