【问题标题】:helm init failed is not a valid chart repository or cannot be reached: Failed to fetch 403 Forbiddenhelm init failed 不是有效的图表存储库或无法访问:Failed to fetch 403 Forbidden
【发布时间】:2021-04-01 01:48:45
【问题描述】:

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

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

question 有类似的问题,但这似乎有所不同,而且我也没有像提到的 here 那样支持代理。

【问题讨论】:

    标签: kubernetes-helm


    【解决方案1】:

    自 2020 年 11 月 13 日起,stable 存储库的新位置为 https://charts.helm.sh/stableincubator 存储库的新位置为 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
    

    【讨论】:

    • 谢谢,让我更新你的答案。我必须在初始化命令 init --stable-repo-url=https://charts.helm.sh/stable 中指定稳定的 repo。
    • 但是,helm 安装程序仍然带有旧的 repo url
    【解决方案2】:

    这为我解决了问题:

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

    【讨论】:

      猜你喜欢
      • 2021-04-29
      • 2022-12-02
      • 2018-01-05
      • 1970-01-01
      • 2020-07-03
      • 2020-10-13
      • 1970-01-01
      • 2018-04-03
      • 2020-07-10
      相关资源
      最近更新 更多