如何解析https://kubernetes-charts.storage.googleapis.com"不是有效的图表存储库 [英] How to resolve https://kubernetes-charts.storage.googleapis.com" is not a valid chart repository

查看:1231
本文介绍了如何解析https://kubernetes-charts.storage.googleapis.com"不是有效的图表存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究头盔2,并尝试将Tiller部署为Pod.

I am working on helm 2 and trying to deploy Tiller as pod.

>helm init --service-account tiller

但是我低于错误: 错误:错误初始化:看起来像" https://kubernetes-charts.storage.googleapis.com 不是有效的图表存储库或无法访问:获取 https://kubernetes-charts. storage.googleapis.com/index.yaml :拨打tcp 172.217.2.240:443:connect:连接超时

But i am getting below Error: Error: error initializing: Looks like "https://kubernetes-charts.storage.googleapis.com" is not a valid chart repository or cannot be reached: Get https://kubernetes-charts.storage.googleapis.com/index.yaml: dial tcp 172.217.2.240:443: connect: connection timed out

有人遇到过这个错误吗?如果是的话,为helm2克服这个错误的推荐方法是什么?

Has anyone faced this error and if yes , what is the recommended way to overcome this for helm2?

推荐答案

2.17.0之前的头盔版本已弃用 https://kubernetes-charts.storage.googleapis.com/index.yaml 作为不再解析的默认稳定存储库.新的仓库是 https://charts.helm.sh/stable .您可以选择:

Helm versions prior to 2.17.0 have the deprecated https://kubernetes-charts.storage.googleapis.com/index.yaml as the default stable repository, which no longer resolves. The new repo is https://charts.helm.sh/stable. You can choose to:

  1. 使用--stable-repo-url参数指定新的存储库:

  1. Use the --stable-repo-url argument to specify the new repository:

helm init --stable-repo-url https://charts.helm.sh/stable --service-account tiller

  • 使用--skip-refresh 参数并替换稳定的仓库:

  • Use the --skip-refresh argument and replace the stable repo:

    helm init --client-only --skip-refresh
    helm repo rm stable
    helm repo add stable https://charts.helm.sh/stable
    

  • 将头盔升级到2.17.0或更高版本.

  • Upgrade helm to 2.17.0 or later.

    这篇关于如何解析https://kubernetes-charts.storage.googleapis.com"不是有效的图表存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    相关文章
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆