helm init失败不是有效的图表存储库或无法访问:无法获取403禁止访问 [英] helm init failed is not a valid chart repository or cannot be reached: Failed to fetch 403 Forbidden
问题描述
不是有效的图表存储库或无法访问:无法获取 https://kubernetes-charts.storage.googleapis.com/index.yaml :403禁止
is not a valid chart repository or cannot be reached: Failed to fetch https://kubernetes-charts.storage.googleapis.com/index.yaml : 403 Forbidden
头盔初始化今天开始失败,我们在CI/CD中使用头盔版本HELM_VERSION: v2.13.0
.
helm init start failing today, we are using helm version HELM_VERSION: v2.13.0
in our CI/CD.
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com
Error: 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
虽然一天前工作正常.这是我在运行init
命令时收到的日志.
While it was working fine a day ago. Here are the logs that I received while running init
command.
$ helm init --client-only
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: 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
有类似的问题问题,但这似乎有所不同,而且我没有像此处所述的代理.
There are similar questions question but that seems different and also I am not behind a proxy like mentioned here.
推荐答案
自2020年11月13日起,stable
存储库的新位置为 https://charts.helm.sh/stable ,incubator
存储库的新位置是 https://charts.helm.sh/incubator .
Since November 13, 2020, the new location for the stable
repository is https://charts.helm.sh/stable and the new location for the incubator
repository is https://charts.helm.sh/incubator.
尝试:
helm init --stable-repo-url=https://charts.helm.sh/stable --client-only
或
$ helm repo add stable https://charts.helm.sh/stable
$ helm repo update
名称 | 旧位置 | 新位置 |
---|---|---|
稳定 | https://kubernetes-charts.storage.googleapis.com | https://charts.helm.sh/stable |
孵化器 | https://kubernetes-charts-incubator.storage.googleapis.com | https://charts.helm.sh/incubator |
Name | Old Location | New Location |
---|---|---|
stable | https://kubernetes-charts.storage.googleapis.com | https://charts.helm.sh/stable |
incubator | https://kubernetes-charts-incubator.storage.googleapis.com | https://charts.helm.sh/incubator |
- 参考
- Ref
这篇关于helm init失败不是有效的图表存储库或无法访问:无法获取403禁止访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!