Trident Helm安装失败、并显示:<.values.imagePull频>:范围无法迭代
适用场景
- Astra三端
- 使用内部私有注册表进行Helm安装(无法访问Internet)
问题描述
背景:
对于不允许直接访问Internet的环境、可以设置一个私有海港容器来使用内部注册表服务。由于典型 部署(连接到外部注册表)使用标准注册表密钥类型、因此会 为具有以下 数据结构的内部文件(在此示例中称为"regcred")创建一个自定义密钥:
"Registery Domain Name" - <domain_name.local>
Username
Password
问题描述:
从Trident文档:使用Helm (脱机模式)部署Trident操作员中,运行以下安装命令可能会产生错误:
# helm install trident-operator netapp-trident/trident-operator --version 100.2502.0 --create-namespace -n trident-system --set imageRegistry=domain_name_example.local/itdevops --set imagePullSecrets=regcred
Error: INSTALLATION FAILED: template: trident-operator/templates/serviceaccount.yaml:17:17: executing "trident-operator/templates/serviceaccount.yaml" at <.Values.imagePullSecrets>: range can't iterate over regcred