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

Adi*_*iii 22 kubernetes-helm

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

helm init 今天开始失败,我们HELM_VERSION: v2.13.0在 CI/CD中使用 helm 版本。

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
Run Code Online (Sandbox Code Playgroud)

虽然一天前它工作正常。这是我在运行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
Run Code Online (Sandbox Code Playgroud)

有类似的问题question但这似乎不同,而且我也不支持这里提到的代理。

Kam*_*san 50

自2020年起11月13日,在新的位置stable信息库是https://charts.helm.sh/stable并为新的位置incubator信息库是https://charts.helm.sh/incubator

尝试:

helm init --stable-repo-url=https://charts.helm.sh/stable --client-only 
Run Code Online (Sandbox Code Playgroud)

或者

$ helm repo add stable https://charts.helm.sh/stable
$ helm repo update
Run Code Online (Sandbox Code Playgroud)


小智 7

这为我解决了这个问题:

helm repo add "stable" "https://charts.helm.sh/stable" --force-update
Run Code Online (Sandbox Code Playgroud)