使用Helm部署Pact Broker失败:仓库无效或无法访问求助
问题描述
按照Pact Broker Kubernetes官方文档操作时,添加helm仓库遇到报错:
C:\temp\helm-v3.11.1-windows-amd64\windows-amd64>helm repo add bitnami https://charts.bitnami.com/bitnami "bitnami" has been added to your repositories C:\temp\helm-v3.11.1-windows-amd64\windows-amd64>helm repo add pact-broker https://pact-foundation.github.io/pact-broker-chart/ Error: looks like "https://pact-foundation.github.io/pact-broker-chart/" is not a valid chart repository or cannot be reached: Get "https://pact-foundation.github.io/pact-broker-chart/index.yaml": dial tcp 185.199.110.153:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
已确认网络、代理正常(添加bitnami仓库成功),能直接打开报错中的index.yaml文件,但访问不带.yaml的URL返回404,怀疑官方文档存在问题。
解决建议
- 先清掉helm本地缓存,重新尝试添加仓库:
helm repo remove pact-broker helm repo update helm repo add pact-broker https://pact-foundation.github.io/pact-broker-chart/ - 如果还是不行,直接用
index.yaml的完整URL作为仓库地址(有些环境下helm对仓库根路径的解析有问题):helm repo add pact-broker https://pact-foundation.github.io/pact-broker-chart/index.yaml - 刷新本地DNS缓存(Windows下执行
ipconfig /flushdns),排除DNS解析异常导致的连接超时。 - 要是确定是文档的问题,直接下载官方chart包本地安装:
# 下载最新chart包 wget https://github.com/pact-foundation/pact-broker-chart/releases/latest/download/pact-broker.tgz -OutFile pact-broker.tgz # 本地安装 helm install pact-broker ./pact-broker.tgz
内容的提问来源于stack exchange,提问作者Cagin Uludamar
相关产品推荐
相关产品推荐

