如何解决Gitlab-CI 失败错误:错误初始化:看起来链接不是有效的图表存储库或无法访问:
我正在通过 Gitlab 运行自动部署到 GCP,我使用这个自动部署脚本 https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml 作为我的指导。现在有一个用于部署的模板,它在作业 auto-deploy download_chart
中失败并抛出此错误(此错误是最近发生的,大约一周前开始):
$ auto-deploy download_chart
Creating /root/.helm
Creating /root/.helm/repository
Creating /root/.helm/repository/cache
Creating /root/.helm/repository/local
Creating /root/.helm/plugins
Creating /root/.helm/starters
Creating /root/.helm/cache/archive
Creating /root/.helm/repository/repositories.yaml
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com
Error: error initializing: Looks like "https://kubernetes-charts.storage.googleapis.com" is not a valid chart repository or cannot be reached: Failed to fetch https://kubernetes-charts.storage.googleapis.com/index.yaml : 403 Forbidden
这是它运行的脚本,https://gitlab.com/gitlab-org/gitlab-foss/blob/master/lib/gitlab/ci/templates/Jobs/Deploy.gitlab-ci.yml 并在 auto-deploy download-chart
处失败。我认为原因是因为这个博客而改变了图表的位置 https://helm.sh/blog/new-location-stable-incubator-charts/ 但我不确定。
我已经看到了这个问题的重复,但它是不同的,因为我使用的是具有部署工作的 CI,只是想知道是否有一种方法可以更改 ci 或者是否有一个使用当前稳定 helm url 的新模板。
我该如何解决这个错误?任何有任何了解的人都会有很大帮助!谢谢。
解决方法
我通过将 Gitlab 实例从 13.2
升级到 13.6
解决了这个问题。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。