0

我正在尝试在 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

有什么我想念的吗?我该如何解决这个问题?提前致谢!

4

1 回答 1

0

在生产 git 存储库上运行的管道的输出是什么?

如果您想尝试从您的笔记本电脑进行本地推广,您需要确保您的 helm 具有图表博物馆的远程存储库,以便它可以找到您已发布的图表(helm 正在谈论的依赖项)env/requirements.yaml在生产中列出git 存储库。

尝试jx open查看图表博物馆的 URL,然后运行

helm repo add myservices $ChartMuseumURL
于 2019-04-17T06:25:48.773 回答