#1 no repositories found
-「How do I enable the Incubator repository?」
环境信息
系统环境: | CentOS Linux release 7.5.1804 (Core) |
软件版本: | Helm v3.0.0-beta.3 |
问题描述
执行helm repo update命令,产生Error: no repositories found. You must add one before updating错误。
问题原因
在下载并安装helm二进制程序之后,默认是没有任何配置文件的,因此也不存在仓库配置信息。
解决办法
官方的Helm的Git仓库为「GitHub/helm/charts」,该仓库用于提交Charts包,而包在`https://kubernetes-charts.storage.googleapis.com/’%E4%BB%93%E5%BA%93%E4%B8%AD%E3%80%82
手动添加仓库:
helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/ helm repo add stable https://kubernetes-charts.storage.googleapis.com # 稳定版仓库 helm repo update # 从Chart仓库中,更新本地可用的Chart信息。 # helm search repo <char-name> helm search repo haproxy