我正在尝试在GKE上构建CI / CD管道。但是,由于连接拒绝错误,从暂存到生产的升级失败了。
为了解决这个问题,我通过更新了exposecontroller的版本来引用https://github.com/jenkins-x/jx/issues/469建议的解决方案。但仍然没有解决。
我可以看到这样的错误:
+ jx step helm build
{"level":"warning","msg":"No $CHART_REPOSITORY defined so using the default value of: http://jenkins-x-chartmuseum:8080\n","time":"2019-04-17T01:17:40Z"}
{"level":"info","msg":"Adding missing Helm repo: chartmuseum.jenkins-x.io http://chartmuseum.jenkins-x.io\n","time":"2019-04-17T01:17:42Z"}
{"level":"info","msg":"Successfully added Helm repository chartmuseum.jenkins-x.io.\n","time":"2019-04-17T01:17:43Z"}
{"level":"info","msg":"Adding missing Helm repo: jenkins-x-chartmuseum:8080 http://jenkins-x-chartmuseum:8080\n","time":"2019-04-17T01:17:43Z"}
{"level":"info","msg":"Successfully added Helm repository jenkins-x-chartmuseum:8080.\n","time":"2019-04-17T01:17:43Z"}
error: failed to build the dependencies of chart '.': failed to run 'helm dependency build' command in directory '.', output: 'Hang tight while we grab the latest from your chart repositories...
...Unable to get an update from the "local" chart repository (http://127.0.0.1:8879/charts):
Get http://127.0.0.1:8879/charts/index.yaml: dial tcp 127.0.0.1:8879: connect: connection refused
有什么我想念的吗?我该如何解决这个问题?提前致谢!
什么是生产git存储库上运行的管道的输出?
如果你想尝试从你的笔记本电脑进行本地推广,你需要确保你的头盔有你的图表博物馆的远程存储库,这样它就可以找到你发布的图表(helm所说的依赖关系),这些图表列在env/requirements.yaml
中生产git仓库。
尝试jx open
查看您的图表博物馆的URL然后运行
helm repo add myservices $ChartMuseumURL