helm init failed不是有效的图表存储库或无法访问:无法获取403 Forbidden



不是有效的图表存储库或无法访问:无法获取https://kubernetes-charts.storage.googleapis.com/index.yaml:403禁止

helm init今天启动失败,我们在CI/CD中使用了helm版本HELM_VERSION: v2.13.0

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命令时收到的日志。

$ 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

也有类似的问题,但这似乎不同,而且我并不是这里提到的代理人。

自2020年11月13日起,stable存储库的新位置为https://charts.helm.sh/stable并且CCD_ 4储存库的新位置是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.comhttps://charts.helm.sh/stable
培养箱https://charts.helm.sh/incubator

这为我修复了它:

helm repo add "stable" "https://charts.helm.sh/stable" --force-update

最新更新