helm-chart使用

chart仓库搭建和chart使用

Posted by Xiaolei.liang on May 15, 2019 本文总阅读量

简介

helm为k8s的包管理器,而k8s的应用包的格式为chart,存储chart的仓库的为chart repo服务器。

使用

  1. 初始化chart仓库
  2. 启动一个chart repo服务器 运行命令helm serve --repo-path ./ --address 127.0.0.1:8899,会在本地8899端口起来一个chart repo服务器。

    网上说随便一个http 服务器就行,我用python起来一个服务器:python -m SimpleHTTPServer 8809, 实际证明是错误的。。。

  3. 安装helm push 插件: helm plugin install https://github.com/chartmuseum/helm-push

  4. helm repo add chartmuseum http://127.0.0.1:8809/charts

  5. push 本地目录:
    1. 创建测试chart
    2. push: helm push mychart/ chartmuseum

reference

The Chart Repository Guide

helm push plugin