美文网首页
helm search drone no results fou

helm search drone no results fou

作者: Sunnky | 来源:发表于2019-05-24 17:47 被阅读0次

不知道什么原因,安装了最新版的helm,然后安装drone的时候,就是报找不到资源的错误,可明明都helm repo update了N遍,没办法,最后只能选择下载官方代码,然后本地打包来进行local式安装了。附上本地helm版本:

[root@master stable]# helm version
Client: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}

废话不多说,步骤如下:

  1. 下载官方代码
git clone https://github.com/helm/charts
  1. 进入stabel目录
cd charts/stable
  1. 打包chart
helm package drone --debug

得到如下的输出:

Successfully packaged chart and saved it to: /root/charts/stable/drone-2.0.0-rc.13.tgz
[debug] Successfully saved /root/charts/stable/drone-2.0.0-rc.13.tgz to /root/.helm/repository/local

这一步会生成类似drone-2.0.0-rc.13.tgz的包,该压缩包被放到了当前目录下,并同时被保存到了helm的本地缺省仓库目录中,默认路径在/root/.helm/repository/local/(下面会用到)

  1. 尝试安装
[root@master stable]# helm search drone
NAME        CHART VERSION   APP VERSION DESCRIPTION
local/drone 2.0.0-rc.13     1.0.0-rc.5  Drone is a Continuous Delivery system built on ...

这个时候search已经能搜到了,当然,前提肯定是你有本地的helm仓库,可以通过如下命令查看:

[root@master stable]# helm repo list
NAME        URL
local       http://127.0.0.1:8879/charts
stable      https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
monocular   https://helm.github.io/monocular

但是如果你此时直接helm install drone,还是会报错

[root@master stable]# helm install local/drone --name drone
Error: failed to download "local/drone" (hint: running `helm repo update` may help)

因为默认会去stable仓库找,这个时候就需要update默认仓库

  1. 替换helm默认仓库
helm repo index --url=http://127.0.0.1:8879 /root/.helm/repository/local/

后面一个参数是要替换的仓库的charts存放目录,上面已经介绍过

  1. 大功告成,安装
helm install drone --name drone

相关文章

  • helm search drone no results fou

    不知道什么原因,安装了最新版的helm,然后安装drone的时候,就是报找不到资源的错误,可明明都helm rep...

  • 搜索结果(Search Results)

    问题 用户需要处理搜索结果列表。 解决方案 展示分好类的结果,并带有简短描述。 何时使用 用户已经完成了一些搜索的...

  • Neural Networks Notes 1: 深度学习是干什

    https://www.youtube.com/results?search_query=Artificial+N...

  • Search Results Relevance@Kaggle

    最近改论文业余玩的一个比赛。我是在最后10几天开始玩的,虽然最后名次不高,但是还是挺有意义的一次比赛。 题目:预测...

  • EOS生态

    https://eosindex.io/ 264 Search Results found 首先是交易所,EOS的...

  • Node模板引擎

    参考文章:Search Results前端模版引擎选择指南- 修仙- SegmentFault几个模板引擎的对比|...

  • swift搜索条

    1,搜索条Options属性还可设置如下功能样式: Shows Search Results Button:勾选后...

  • Swift - 搜索条(UISearchBar)的用法

    1、搜索条Options属性还可设置如下功能样式: Shows Search Results Button:勾选后...

  • Maven 项目使用 Drone 实现 CI/CD

    源码springboot-drone-demo docker版本 drone:1.6.5 drone-runner...

  • helm

    helm helm介绍 helm安装 chart指引 helm命令helm inithelm listhelm c...

网友评论

      本文标题:helm search drone no results fou

      本文链接:https://www.haomeiwen.com/subject/jjenzqtx.html